JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::BlocksProtocol::HostPacketDecoder< Handler > Struct Template Reference

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)
 

Detailed Description

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

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

{Blocks}

Member Function Documentation

◆ getMessageType()

◆ handleButtonDownOrUp()

◆ handleConfigMessage()

◆ handleCustomMessage()

◆ handleFirmwareUpdateACK()

◆ handleLogMessage()

◆ handleName()

◆ handlePacketACK()

◆ handleTopology()

◆ handleTopologyConnection()

◆ handleTopologyDevice()

◆ handleTopologyEnd()

◆ handleTouch() [1/2]

◆ handleTouch() [2/2]

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

◆ handleTouchWithVelocity()

◆ handleVersion()

◆ processNextMessage()

template<typename Handler >
static bool juce::BlocksProtocol::HostPacketDecoder< Handler >::processNextMessage ( Handler &  handler,
Packed7BitArrayReader reader,
MessageFromDevice  messageType,
TopologyIndex  deviceIndex,
PacketTimestamp  packetTimestamp 
)
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().

◆ processNextPacket()


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