JUCE
|
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 void | processNextPacket (Handler &handler, TopologyIndex deviceIndex, const void *data, int size) |
static uint32 | getMessageType (Packed7BitArrayReader &reader) |
static bool | processNextMessage (Handler &handler, Packed7BitArrayReader &reader, MessageFromDevice messageType, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp) |
static bool | handleTopology (Handler &handler, Packed7BitArrayReader &reader, bool newTopology) |
static bool | handleTopologyEnd (Handler &handler, Packed7BitArrayReader &reader) |
static void | handleTopologyDevice (Handler &handler, Packed7BitArrayReader &reader) |
static void | handleTopologyConnection (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handleVersion (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handleName (Handler &handler, Packed7BitArrayReader &reader) |
static bool | handleTouch (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isStart, bool isEnd) |
static bool | handleTouchWithVelocity (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 | handleButtonDownOrUp (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp, bool isDown) |
static bool | handleCustomMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex, PacketTimestamp packetTimestamp) |
static bool | handlePacketACK (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleFirmwareUpdateACK (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleConfigMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
static bool | handleLogMessage (Handler &handler, Packed7BitArrayReader &reader, TopologyIndex deviceIndex) |
Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.
|
static |
|
static |
|
static |
References BlocksProtocol::configMessage, BlocksProtocol::controlButtonDown, BlocksProtocol::controlButtonUp, BlocksProtocol::deviceName, BlocksProtocol::deviceTopology, BlocksProtocol::deviceTopologyEnd, BlocksProtocol::deviceTopologyExtend, BlocksProtocol::deviceVersion, BlocksProtocol::firmwareUpdateACK, handleButtonDownOrUp(), handleConfigMessage(), handleCustomMessage(), handleFirmwareUpdateACK(), handleLogMessage(), handleName(), handlePacketACK(), handleTopology(), handleTopologyEnd(), handleTouch(), handleTouchWithVelocity(), handleVersion(), jassertfalse, BlocksProtocol::logMessage, BlocksProtocol::packetACK, BlocksProtocol::programEventMessage, BlocksProtocol::touchEnd, BlocksProtocol::touchEndWithVelocity, BlocksProtocol::touchMove, BlocksProtocol::touchMoveWithVelocity, BlocksProtocol::touchStart, and BlocksProtocol::touchStartWithVelocity.
Referenced by processNextPacket().
|
static |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), handleTopologyConnection(), handleTopologyDevice(), jassertfalse, BlocksProtocol::Packed7BitArrayReader::read(), BlocksProtocol::topologyConnectionInfo, and BlocksProtocol::topologyDeviceInfo.
Referenced by processNextMessage().
|
static |
References jassertfalse, and BlocksProtocol::Packed7BitArrayReader::read().
Referenced by processNextMessage().
|
static |
References BlocksProtocol::DeviceStatus::batteryCharging, BlocksProtocol::DeviceStatus::batteryLevel, BlocksProtocol::BlockStringData< MaxSize >::data, BlocksProtocol::DeviceStatus::index, BlocksProtocol::BlockStringData< MaxSize >::length, BlocksProtocol::BlockStringData< 16 >::maxLength, BlocksProtocol::Packed7BitArrayReader::read(), BlocksProtocol::Packed7BitArrayReader::readBits(), and BlocksProtocol::DeviceStatus::serialNumber.
Referenced by handleTopology().
|
static |
References BlocksProtocol::DeviceConnection::device1, BlocksProtocol::DeviceConnection::device2, BlocksProtocol::DeviceConnection::port1, BlocksProtocol::DeviceConnection::port2, BlocksProtocol::Packed7BitArrayReader::read(), and BlocksProtocol::Packed7BitArrayReader::readBits().
Referenced by handleTopology().
|
static |
|
static |
|
static |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, BlocksProtocol::IntegerWithBitSize< numBits >::get(), BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), handleTouch(), jassertfalse, BlocksProtocol::Packed7BitArrayReader::read(), and BlocksProtocol::touchMessage.
Referenced by handleTouch(), handleTouchWithVelocity(), and processNextMessage().
|
static |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, BlocksProtocol::IntegerWithBitSize< numBits >::get(), BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), handleTouch(), jassertfalse, BlocksProtocol::Packed7BitArrayReader::read(), and BlocksProtocol::touchMessageWithVelocity.
Referenced by processNextMessage().
|
static |
|
static |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, BlocksProtocol::controlButtonMessage, BlocksProtocol::IntegerWithBitSize< numBits >::get(), BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, and BlocksProtocol::Packed7BitArrayReader::read().
Referenced by processNextMessage().
|
static |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, BlocksProtocol::IntegerWithBitSize< numBits >::get(), BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), jassertfalse, BlocksProtocol::programEventMessage, and BlocksProtocol::Packed7BitArrayReader::read().
Referenced by processNextMessage().
|
static |
|
static |
|
static |
|
static |
References BlocksProtocol::Packed7BitArrayReader::getRemainingBits(), and BlocksProtocol::Packed7BitArrayReader::read().
Referenced by processNextMessage().