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.
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 |
|
noexcept |
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::reset | ( | ) |
|
noexcept |
References JUCE_LOG_LITTLEFOOT_HEAP.
Referenced by littlefoot::LittleFootRemoteHeap< ImplementationClass >::reset().
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::resetDeviceStateToUnknown | ( | ) |
References JUCE_LOG_LITTLEFOOT_HEAP, and littlefoot::LittleFootRemoteHeap< ImplementationClass >::resetDataRangeToUnknown().
Referenced by littlefoot::LittleFootRemoteHeap< ImplementationClass >::handleACKFromDevice(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::LittleFootRemoteHeap(), and littlefoot::LittleFootRemoteHeap< ImplementationClass >::reset().
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
staticnoexcept |
void littlefoot::LittleFootRemoteHeap< ImplementationClass >::sendChanges | ( | ImplementationClass & | bi, |
bool | forceSend | ||
) |
|
noexcept |
|
noexcept |
const size_t littlefoot::LittleFootRemoteHeap< ImplementationClass >::blockSize |
Referenced by littlefoot::LittleFootRemoteHeap< ImplementationClass >::getByte(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::handleACKFromDevice(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::isProgramLoaded(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::sendChanges(), littlefoot::LittleFootRemoteHeap< ImplementationClass >::setBits(), and littlefoot::LittleFootRemoteHeap< ImplementationClass >::setByte().
|
staticconstexpr |