The BLOCKS SDK
BlocksProtocol::HostPacketBuilder< maxPacketBytes > Struct Template Reference

Description

template<int maxPacketBytes>
struct BlocksProtocol::HostPacketBuilder< maxPacketBytes >

Helper class for constructing a packet for sending to a BLOCKS device.

Public Member Functions

 HostPacketBuilder () noexcept
 
 HostPacketBuilder (const HostPacketBuilder &)=delete
 
 HostPacketBuilder (HostPacketBuilder &&)=default
 
const void * getData () const noexcept
 
int size () const noexcept
 
void writePacketSysexHeaderBytes (TopologyIndex deviceIndex) noexcept
 
void writePacketSysexFooter () noexcept
 
bool deviceControlMessage (DeviceCommand command) noexcept
 
bool beginDataChanges (PacketIndex packetIndex) noexcept
 
bool endDataChanges (bool isLastChange) noexcept
 
bool skipBytes (int numToSkip) noexcept
 
bool setMultipleBytes (const juce::uint8 *values, int num) noexcept
 
bool setMultipleBytes (juce::uint8 value, juce::uint8 lastValue, int num) noexcept
 
bool addProgramEventMessage (const juce::int32 *messageData)
 
bool addFirmwareUpdatePacket (const juce::uint8 *packetData, juce::uint8 size)
 
bool addConfigSetMessage (juce::int32 item, juce::int32 value)
 
bool addRequestMessage (juce::int32 item)
 
bool addRequestFactorySyncMessage ()
 
bool addRequestUserSyncMessage ()
 
bool addFactoryReset ()
 
bool addBlockReset ()
 
bool addSetBlockName (const juce::String &name)
 

Constructor & Destructor Documentation

◆ HostPacketBuilder() [1/3]

template<int maxPacketBytes>
BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( )
noexcept

◆ HostPacketBuilder() [2/3]

template<int maxPacketBytes>
BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( const HostPacketBuilder< maxPacketBytes > &  )
delete

◆ HostPacketBuilder() [3/3]

template<int maxPacketBytes>
BlocksProtocol::HostPacketBuilder< maxPacketBytes >::HostPacketBuilder ( HostPacketBuilder< maxPacketBytes > &&  )
default

Member Function Documentation

◆ getData()

template<int maxPacketBytes>
const void* BlocksProtocol::HostPacketBuilder< maxPacketBytes >::getData ( ) const
noexcept

◆ size()

◆ writePacketSysexHeaderBytes()

template<int maxPacketBytes>
void BlocksProtocol::HostPacketBuilder< maxPacketBytes >::writePacketSysexHeaderBytes ( TopologyIndex  deviceIndex)
noexcept

◆ writePacketSysexFooter()

template<int maxPacketBytes>
void BlocksProtocol::HostPacketBuilder< maxPacketBytes >::writePacketSysexFooter ( )
noexcept

◆ deviceControlMessage()

◆ beginDataChanges()

◆ endDataChanges()

◆ skipBytes()

◆ setMultipleBytes() [1/2]

◆ setMultipleBytes() [2/2]

◆ addProgramEventMessage()

template<int maxPacketBytes>
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addProgramEventMessage ( const juce::int32 *  messageData)

◆ addFirmwareUpdatePacket()

◆ addConfigSetMessage()

template<int maxPacketBytes>
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addConfigSetMessage ( juce::int32  item,
juce::int32  value 
)

◆ addRequestMessage()

◆ addRequestFactorySyncMessage()

◆ addRequestUserSyncMessage()

◆ addFactoryReset()

◆ addBlockReset()

◆ addSetBlockName()

template<int maxPacketBytes>
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addSetBlockName ( const juce::String &  name)

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