![]() |
Open FFBoard
Open source force feedback firmware
|
Go to the source code of this file.
Functions | |
bool | Flash_Init () |
bool | Flash_Write (uint16_t adr, uint16_t dat) |
bool | Flash_Read (uint16_t adr, uint16_t *buf, bool checkempty=true) |
bool | Flash_ReadWriteDefault (uint16_t adr, uint16_t *buf, uint16_t def) |
void | Flash_Dump (std::vector< std::tuple< uint16_t, uint16_t > > *result, bool includeAll=false) |
bool | Flash_Format () |
template<typename TVal > | |
TVal | Flash_ReadDefault (uint16_t adr, TVal def) |
uint16_t | pack (uint8_t hb, uint8_t lb) |
std::tuple< uint8_t, uint8_t > | unpack (uint16_t v) |
void Flash_Dump | ( | std::vector< std::tuple< uint16_t, uint16_t > > * | result, |
bool | includeAll = false |
||
) |
Definition at line 216 of file flash_helpers.cpp.
__weak bool Flash_Format | ( | ) |
Erases the whole EEPROM to its default value
Formats the eeprom emulation section to delete all data
Erases the whole EEPROM to its default value
Definition at line 172 of file flash_helpers.cpp.
__weak bool Flash_Init | ( | ) |
Called after startup
Definition at line 189 of file flash_helpers.cpp.
bool Flash_Read | ( | uint16_t | adr, |
uint16_t * | buf, | ||
bool | checkempty | ||
) |
Reads a value and if checkempty is true returns false if the read value is the erased value (0xffff) or not found
Definition at line 146 of file flash_helpers.cpp.
|
inline |
Definition at line 36 of file flash_helpers.h.
__weak bool Flash_ReadWriteDefault | ( | uint16_t | adr, |
uint16_t * | buf, | ||
uint16_t | def | ||
) |
Definition at line 137 of file flash_helpers.cpp.
__weak bool Flash_Write | ( | uint16_t | adr, |
uint16_t | dat | ||
) |
Definition at line 112 of file flash_helpers.cpp.
|
inline |
Definition at line 44 of file flash_helpers.h.
|
inline |
Definition at line 48 of file flash_helpers.h.