JUCE
|
This class manages the synchronisation of a remote block of heap memory used by a littlefoot program running on a block. More...
#include <juce_LittleFootRemoteHeap.h>
Public Member Functions | |
LittleFootRemoteHeap (uint32 blockSizeToUse) noexcept | |
void | reset () |
void | clearTargetData () noexcept |
void | resetDeviceStateToUnknown () |
void | resetDataRangeToUnknown (size_t offset, size_t size) noexcept |
void | setByte (size_t offset, uint8 value) noexcept |
void | setBytes (size_t offset, const uint8 *data, size_t num) noexcept |
void | setBits (uint32 startBit, uint32 numBits, uint32 value) noexcept |
uint8 | getByte (size_t offset) noexcept |
bool | isFullySynced () const noexcept |
void | sendChanges (ImplementationClass &bi, bool forceSend) |
void | handleACKFromDevice (ImplementationClass &bi, uint32 packetIndex) noexcept |
bool | isProgramLoaded () noexcept |
Static Public Member Functions | |
static bool | isAllZero (const uint8 *data, size_t size) noexcept |
Public Attributes | |
const size_t | blockSize |
Static Public Attributes | |
static constexpr uint16 | unknownByte = 0x100 |
This class manages the synchronisation of a remote block of heap memory used by a littlefoot program running on a block.
Data in the block can be changed by calling setByte, setBytes, setBits etc, and these changes will be flushed to the device when sendChanges is called.
|
noexcept |
References resetDeviceStateToUnknown().
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::reset | ( | ) |
References clearTargetData(), JUCE_LOG_LITTLEFOOT_HEAP, and resetDeviceStateToUnknown().
|
noexcept |
References JUCE_LOG_LITTLEFOOT_HEAP, and zeromem().
Referenced by reset().
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::resetDeviceStateToUnknown | ( | ) |
References JUCE_LOG_LITTLEFOOT_HEAP, and resetDataRangeToUnknown().
Referenced by handleACKFromDevice(), LittleFootRemoteHeap(), and reset().
|
noexcept |
References unknownByte.
Referenced by resetDeviceStateToUnknown().
|
noexcept |
References blockSize, and jassertfalse.
Referenced by setBytes().
|
noexcept |
References setByte().
|
noexcept |
|
noexcept |
References blockSize, and jassertfalse.
|
noexcept |
|
staticnoexcept |
Referenced by sendChanges().
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::sendChanges | ( | ImplementationClass & | bi, |
bool | forceSend ) |
References blockSize, Time::getCurrentTime(), isAllZero(), JUCE_LOG_LITTLEFOOT_HEAP, and RelativeTime::milliseconds().
Referenced by handleACKFromDevice().
|
noexcept |
References blockSize, JUCE_LOG_LITTLEFOOT_HEAP, resetDeviceStateToUnknown(), and sendChanges().
|
noexcept |
const size_t littlefoot::LittleFootRemoteHeap< ImplementationClass >::blockSize |
Referenced by getByte(), handleACKFromDevice(), isProgramLoaded(), sendChanges(), setBits(), and setByte().
|
staticconstexpr |
Referenced by resetDataRangeToUnknown().