JUCE
|
Helper class for constructing a packet for sending to a BLOCKS device. More...
#include <juce_HostPacketBuilder.h>
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 uint8 *values, int num) noexcept |
bool | setMultipleBytes (uint8 value, uint8 lastValue, int num) noexcept |
bool | addProgramEventMessage (const int32 *messageData) |
bool | addFirmwareUpdatePacket (const uint8 *packetData, uint8 size) |
bool | addConfigSetMessage (int32 item, int32 value) |
bool | addRequestMessage (int32 item) |
bool | addRequestFactorySyncMessage () |
bool | addRequestUserSyncMessage () |
bool | addFactoryReset () |
bool | addBlockReset () |
bool | addSetBlockName (const String &name) |
Helper class for constructing a packet for sending to a BLOCKS device.
|
noexcept |
Referenced by HostPacketBuilder(), and HostPacketBuilder().
|
delete |
References HostPacketBuilder().
|
default |
References HostPacketBuilder().
|
noexcept |
|
noexcept |
Referenced by addFirmwareUpdatePacket().
|
noexcept |
References jassert.
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< 3 >::bits, BlocksProtocol::IntegerWithBitSize< 4 >::bits, BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::IntegerWithBitSize< 4 >::maxValue, BlocksProtocol::IntegerWithBitSize< 8 >::maxValue, skipBytes(), BlocksProtocol::skipBytesFew, and BlocksProtocol::skipBytesMany.
Referenced by skipBytes().
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< 3 >::bits, BlocksProtocol::IntegerWithBitSize< 8 >::bits, and BlocksProtocol::setSequenceOfBytes.
Referenced by setMultipleBytes().
|
noexcept |
References BlocksProtocol::IntegerWithBitSize< 3 >::bits, BlocksProtocol::IntegerWithBitSize< 4 >::bits, BlocksProtocol::IntegerWithBitSize< 8 >::bits, BlocksProtocol::IntegerWithBitSize< 4 >::maxValue, BlocksProtocol::IntegerWithBitSize< 8 >::maxValue, BlocksProtocol::setFewBytesWithLastValue, BlocksProtocol::setFewBytesWithValue, BlocksProtocol::setManyBytesWithValue, and setMultipleBytes().
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addProgramEventMessage | ( | const int32 * | messageData | ) |
References BlocksProtocol::programEventMessage.
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFirmwareUpdatePacket | ( | const uint8 * | packetData, |
uint8 | size ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addConfigSetMessage | ( | int32 | item, |
int32 | value ) |
References BlocksProtocol::configMessage, BlocksProtocol::configSetMessage, and BlocksProtocol::setConfig.
Referenced by BlockConfigManager::setBlockConfig().
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestMessage | ( | int32 | item | ) |
References BlocksProtocol::configMessage, BlocksProtocol::configSetMessage, and BlocksProtocol::requestConfig.
Referenced by BlockConfigManager::requestBlockConfig().
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestFactorySyncMessage | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addRequestUserSyncMessage | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addFactoryReset | ( | ) |
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addBlockReset | ( | ) |
References BlocksProtocol::IntegerWithBitSize< 7 >::bits, and BlocksProtocol::blockReset.
bool BlocksProtocol::HostPacketBuilder< maxPacketBytes >::addSetBlockName | ( | const String & | name | ) |