JUCE
Static Public Member Functions | List of all members
BlocksProtocol::HostPacketDecoder< Handler > Struct Template Reference

Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object. More...

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)
 

Detailed Description

template<typename Handler>
struct BlocksProtocol::HostPacketDecoder< Handler >

Parses data packets from a BLOCKS device, and translates them into callbacks on a handler object.

Member Function Documentation

◆ processNextPacket()

template<typename Handler >
static void BlocksProtocol::HostPacketDecoder< Handler >::processNextPacket ( Handler &  handler,
TopologyIndex  deviceIndex,
const void *  data,
int  size 
)
static

◆ getMessageType()

template<typename Handler >
static uint32 BlocksProtocol::HostPacketDecoder< Handler >::getMessageType ( Packed7BitArrayReader reader)
static

◆ processNextMessage()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage ( Handler &  handler,
Packed7BitArrayReader reader,
MessageFromDevice  messageType,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp 
)
static

◆ handleTopology()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleTopology ( Handler &  handler,
Packed7BitArrayReader reader,
bool  newTopology 
)
static

◆ handleTopologyEnd()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyEnd ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

◆ handleTopologyDevice()

template<typename Handler >
static void BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyDevice ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

◆ handleTopologyConnection()

template<typename Handler >
static void BlocksProtocol::HostPacketDecoder< Handler >::handleTopologyConnection ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

◆ handleVersion()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleVersion ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

◆ handleName()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleName ( Handler &  handler,
Packed7BitArrayReader reader 
)
static

◆ handleTouch() [1/2]

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleTouch ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isStart,
bool  isEnd 
)
static

◆ handleTouchWithVelocity()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleTouchWithVelocity ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isStart,
bool  isEnd 
)
static

◆ handleTouch() [2/2]

template<typename Handler >
static void BlocksProtocol::HostPacketDecoder< Handler >::handleTouch ( Handler &  handler,
TopologyIndex  deviceIndex,
uint32  timestamp,
TouchIndex  touchIndex,
TouchPosition  position,
TouchVelocity  velocity,
bool  isStart,
bool  isEnd 
)
static

◆ handleButtonDownOrUp()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleButtonDownOrUp ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp,
bool  isDown 
)
static

◆ handleCustomMessage()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleCustomMessage ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp 
)
static

◆ handlePacketACK()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handlePacketACK ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex 
)
static

◆ handleFirmwareUpdateACK()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleFirmwareUpdateACK ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex 
)
static

◆ handleConfigMessage()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleConfigMessage ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex 
)
static

◆ handleLogMessage()

template<typename Handler >
static bool BlocksProtocol::HostPacketDecoder< Handler >::handleLogMessage ( Handler &  handler,
Packed7BitArrayReader reader,
TopologyIndex  deviceIndex 
)
static

The documentation for this struct was generated from the following file: