|
enum class | BlocksProtocol::MessageFromDevice {
BlocksProtocol::deviceTopology = 0x01
, BlocksProtocol::packetACK = 0x02
, BlocksProtocol::firmwareUpdateACK = 0x03
, BlocksProtocol::deviceTopologyExtend = 0x04
,
BlocksProtocol::deviceTopologyEnd = 0x05
, BlocksProtocol::deviceVersion = 0x06
, BlocksProtocol::deviceName = 0x07
, BlocksProtocol::touchStart = 0x10
,
BlocksProtocol::touchMove = 0x11
, BlocksProtocol::touchEnd = 0x12
, BlocksProtocol::touchStartWithVelocity = 0x13
, BlocksProtocol::touchMoveWithVelocity = 0x14
,
BlocksProtocol::touchEndWithVelocity = 0x15
, BlocksProtocol::configMessage = 0x18
, BlocksProtocol::controlButtonDown = 0x20
, BlocksProtocol::controlButtonUp = 0x21
,
BlocksProtocol::programEventMessage = 0x28
, BlocksProtocol::logMessage = 0x30
} |
| Messages that a device may send to the host. More...
|
|
enum class | BlocksProtocol::MessageFromHost {
BlocksProtocol::deviceCommandMessage = 0x01
, BlocksProtocol::sharedDataChange = 0x02
, BlocksProtocol::programEventMessage = 0x03
, BlocksProtocol::firmwareUpdatePacket = 0x04
,
BlocksProtocol::configMessage = 0x10
, BlocksProtocol::factoryReset = 0x11
, BlocksProtocol::blockReset = 0x12
, BlocksProtocol::setName = 0x20
} |
| Messages that the host may send to a device. More...
|
|
enum | BlocksProtocol::DeviceCommands {
BlocksProtocol::beginAPIMode = 0x00
, BlocksProtocol::requestTopologyMessage = 0x01
, BlocksProtocol::endAPIMode = 0x02
, BlocksProtocol::ping = 0x03
,
BlocksProtocol::debugMode = 0x04
, BlocksProtocol::saveProgramAsDefault = 0x05
} |
|
enum | BlocksProtocol::ConfigCommands {
BlocksProtocol::setConfig = 0x00
, BlocksProtocol::requestConfig = 0x01
, BlocksProtocol::requestFactorySync = 0x02
, BlocksProtocol::requestUserSync = 0x03
,
BlocksProtocol::updateConfig = 0x04
, BlocksProtocol::updateUserConfig = 0x05
, BlocksProtocol::setConfigState = 0x06
, BlocksProtocol::factorySyncEnd = 0x07
,
BlocksProtocol::clusterConfigSync = 0x08
, BlocksProtocol::factorySyncReset = 0x09
} |
|
enum | BlocksProtocol::DataChangeCommands {
BlocksProtocol::endOfPacket = 0
, BlocksProtocol::endOfChanges = 1
, BlocksProtocol::skipBytesFew = 2
, BlocksProtocol::skipBytesMany = 3
,
BlocksProtocol::setSequenceOfBytes = 4
, BlocksProtocol::setFewBytesWithValue = 5
, BlocksProtocol::setFewBytesWithLastValue = 6
, BlocksProtocol::setManyBytesWithValue = 7
} |
|
enum | BlocksProtocol::BitSizes {
BlocksProtocol::topologyMessageHeader = (int) MessageType::bits + (int) ProtocolVersion::bits + (int) DeviceCount::bits + (int) ConnectionCount::bits
, BlocksProtocol::topologyDeviceInfo = (int) BlockSerialNumber::maxLength * 7 + (int) BatteryLevel::bits + (int) BatteryCharging::bits
, BlocksProtocol::topologyConnectionInfo = topologyIndexBits + (int) ConnectorPort::bits + topologyIndexBits + (int) ConnectorPort::bits
, BlocksProtocol::typeDeviceAndTime = (int) MessageType::bits + (int) PacketTimestampOffset::bits
,
BlocksProtocol::touchMessage = (int) typeDeviceAndTime + (int) TouchIndex::bits + (int) TouchPosition::bits
, BlocksProtocol::touchMessageWithVelocity = (int) touchMessage + (int) TouchVelocity::bits
, BlocksProtocol::programEventMessage = (int) MessageType::bits + 32 * numProgramMessageInts
, BlocksProtocol::programEventMessage = 0x28
,
BlocksProtocol::programEventMessage = 0x03
, BlocksProtocol::packetACK = (int) MessageType::bits + (int) PacketCounter::bits
, BlocksProtocol::packetACK = 0x02
, BlocksProtocol::firmwareUpdateACK = (int) MessageType::bits + (int) FirmwareUpdateACKCode::bits + (int) FirmwareUpdateACKDetail::bits
,
BlocksProtocol::firmwareUpdateACK = 0x03
, BlocksProtocol::controlButtonMessage = (int) typeDeviceAndTime + (int) ControlButtonID::bits
, BlocksProtocol::configSetMessage = (int) MessageType::bits + (int) ConfigCommand::bits + (int) ConfigItemIndex::bits + (int) ConfigItemValue::bits
, BlocksProtocol::configRespMessage = (int) MessageType::bits + (int) ConfigCommand::bits + (int) ConfigItemIndex::bits + ((int) ConfigItemValue::bits * 3)
,
BlocksProtocol::configSyncEndMessage = (int) MessageType::bits + (int) ConfigCommand::bits
} |
| Contains the number of bits required to encode various items in the packets. More...
|
|