RSeries astromech firmware
EEPROMSettings< T, VERSION > Class Template Reference

#include <core/EEPROMSettings.h>

Inherits T.

Public Member Functions

T * data ()
 
bool read ()
 
void write ()
 
bool clearCommands ()
 
size_t getCommandCount ()
 
size_t getCommands (uint8_t *buffer, size_t maxBufferSize)
 
bool listCommands (Print &stream)
 
bool listSortedCommands (Print &stream)
 
bool readCommand (uint8_t num, char *cmd, size_t cmdBufferSize, const char *prefix=nullptr)
 
bool deleteCommand (uint8_t num)
 
bool writeCommand (uint8_t num, const char *cmd)
 

Static Public Attributes

static constexpr int kMaximumCommandLength = 0xFF
 

Member Function Documentation

◆ clearCommands()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::clearCommands ( )
inline

◆ data()

template<class T , uint32_t VERSION = 0xba5eba11>
T* EEPROMSettings< T, VERSION >::data ( )
inline

◆ deleteCommand()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::deleteCommand ( uint8_t  num)
inline

◆ getCommandCount()

template<class T , uint32_t VERSION = 0xba5eba11>
size_t EEPROMSettings< T, VERSION >::getCommandCount ( )
inline

◆ getCommands()

template<class T , uint32_t VERSION = 0xba5eba11>
size_t EEPROMSettings< T, VERSION >::getCommands ( uint8_t *  buffer,
size_t  maxBufferSize 
)
inline

◆ listCommands()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::listCommands ( Print &  stream)
inline

◆ listSortedCommands()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::listSortedCommands ( Print &  stream)
inline

◆ read()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::read ( )
inline

◆ readCommand()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::readCommand ( uint8_t  num,
char *  cmd,
size_t  cmdBufferSize,
const char *  prefix = nullptr 
)
inline

◆ write()

template<class T , uint32_t VERSION = 0xba5eba11>
void EEPROMSettings< T, VERSION >::write ( )
inline

◆ writeCommand()

template<class T , uint32_t VERSION = 0xba5eba11>
bool EEPROMSettings< T, VERSION >::writeCommand ( uint8_t  num,
const char *  cmd 
)
inline

Member Data Documentation

◆ kMaximumCommandLength

template<class T , uint32_t VERSION = 0xba5eba11>
constexpr int EEPROMSettings< T, VERSION >::kMaximumCommandLength = 0xFF
staticconstexpr

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