Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object. More...
#include <juce_HostPacketDecoder.h>
Static Public Member Functions | |
static uint32 | getMessageType (Packed7BitArrayReader &reader) |
static bool | handleButtonDownOrUp (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isDown) |
static bool | handleConfigMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleCustomMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp) |
static bool | handleFirmwareUpdateACK (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleLogMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleName (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handlePacketACK (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleTopology (Handler &handler, Packed7BitArrayReader &reader, bool newTopology) |
static void | handleTopologyConnection (Handler &handler, Packed7BitArrayReader &reader) |
static void | handleTopologyDevice (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handleTopologyEnd (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handleTouch (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isStart, bool isEnd) |
static void | handleTouch (Handler &handler, TopologyIndex deviceIndex, uint32 timestamp, TouchIndex touchIndex, TouchPosition position, TouchVelocity velocity, bool isStart, bool isEnd) |
static bool | handleTouchWithVelocity (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isStart, bool isEnd) |
static bool | handleVersion (Handler &handler, Packed7BitArrayReader &reader) |
static bool | processNextMessage (Handler &handler, Packed7BitArrayReader &reader, MessageFromDevice messageType, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp) |
static void | processNextPacket (Handler &handler, TopologyIndex deviceIndex, const void *data, int size) |
Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.
{Blocks}
|
inlinestatic |
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::controlButtonMessage, juce::BlocksProtocol::IntegerWithBitSize< numBits >::get(), juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, and juce::BlocksProtocol::Packed7BitArrayReader::read().
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::factorySyncEnd, juce::BlocksProtocol::factorySyncReset, juce::BlocksProtocol::IntegerWithBitSize< numBits >::get(), juce::BlocksProtocol::Packed7BitArrayReader::read(), juce::BlocksProtocol::setConfig, and juce::BlocksProtocol::updateConfig.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::IntegerWithBitSize< numBits >::get(), juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, juce::BlocksProtocol::numProgramMessageInts, juce::BlocksProtocol::programEventMessage, and juce::BlocksProtocol::Packed7BitArrayReader::read().
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
References juce::BlocksProtocol::BlockStringData< MaxSize >::data, juce::BlocksProtocol::DeviceName::index, juce::BlocksProtocol::BlockStringData< MaxSize >::length, juce::BlocksProtocol::DeviceName::name, juce::BlocksProtocol::Packed7BitArrayReader::readBits(), and juce::BlocksProtocol::topologyIndexBits.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, juce::BlocksProtocol::packetACK, and juce::BlocksProtocol::Packed7BitArrayReader::read().
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::IntegerWithBitSize< 8 >::bits, juce::BlocksProtocol::currentProtocolVersion, juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyConnection(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyDevice(), jassertfalse, juce::BlocksProtocol::maxBlocksInTopologyPacket, juce::BlocksProtocol::maxConnectionsInTopologyPacket, juce::BlocksProtocol::Packed7BitArrayReader::read(), juce::BlocksProtocol::topologyConnectionInfo, and juce::BlocksProtocol::topologyDeviceInfo.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::DeviceConnection::device1, juce::BlocksProtocol::DeviceConnection::device2, juce::BlocksProtocol::DeviceConnection::port1, juce::BlocksProtocol::DeviceConnection::port2, juce::BlocksProtocol::Packed7BitArrayReader::read(), juce::BlocksProtocol::Packed7BitArrayReader::readBits(), and juce::BlocksProtocol::topologyIndexBits.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopology().
|
inlinestatic |
References juce::BlocksProtocol::DeviceStatus::batteryCharging, juce::BlocksProtocol::DeviceStatus::batteryLevel, juce::BlocksProtocol::DeviceStatus::index, juce::BlocksProtocol::Packed7BitArrayReader::read(), juce::BlocksProtocol::Packed7BitArrayReader::readBits(), juce::BlocksProtocol::BlockSerialNumber::serial, juce::BlocksProtocol::DeviceStatus::serialNumber, and juce::BlocksProtocol::topologyIndexBits.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopology().
|
inlinestatic |
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::IntegerWithBitSize< numBits >::get(), juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, juce::BlocksProtocol::Packed7BitArrayReader::read(), and juce::BlocksProtocol::touchMessage.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouchWithVelocity(), and juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::IntegerWithBitSize< numBits >::get(), juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouch(), jassertfalse, juce::BlocksProtocol::Packed7BitArrayReader::read(), and juce::BlocksProtocol::touchMessageWithVelocity.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::BlockStringData< MaxSize >::data, juce::BlocksProtocol::DeviceVersion::index, juce::BlocksProtocol::BlockStringData< MaxSize >::length, juce::BlocksProtocol::Packed7BitArrayReader::readBits(), juce::BlocksProtocol::topologyIndexBits, and juce::BlocksProtocol::DeviceVersion::version.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage().
|
inlinestatic |
References juce::BlocksProtocol::configMessage, juce::BlocksProtocol::controlButtonDown, juce::BlocksProtocol::controlButtonUp, juce::BlocksProtocol::deviceName, juce::BlocksProtocol::deviceTopology, juce::BlocksProtocol::deviceTopologyEnd, juce::BlocksProtocol::deviceTopologyExtend, juce::BlocksProtocol::deviceVersion, juce::BlocksProtocol::firmwareUpdateACK, juce::BlocksProtocol::HostPacketDecoder< Handler >::handleButtonDownOrUp(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleConfigMessage(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleCustomMessage(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleFirmwareUpdateACK(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleLogMessage(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleName(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handlePacketACK(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopology(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyEnd(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouch(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleTouchWithVelocity(), juce::BlocksProtocol::HostPacketDecoder< Handler >::handleVersion(), jassertfalse, juce::BlocksProtocol::logMessage, juce::BlocksProtocol::packetACK, juce::BlocksProtocol::programEventMessage, juce::BlocksProtocol::touchEnd, juce::BlocksProtocol::touchEndWithVelocity, juce::BlocksProtocol::touchMove, juce::BlocksProtocol::touchMoveWithVelocity, juce::BlocksProtocol::touchStart, and juce::BlocksProtocol::touchStartWithVelocity.
Referenced by juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextPacket().
|
inlinestatic |
References juce::BlocksProtocol::IntegerWithBitSize< numBits >::bits, juce::BlocksProtocol::Packed7BitArrayReader::checksumIsOK(), juce::BlocksProtocol::HostPacketDecoder< Handler >::getMessageType(), juce::BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), int(), jassertfalse, juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage(), and juce::BlocksProtocol::Packed7BitArrayReader::read().