![]() |
Open FFBoard
Open source force feedback firmware
|
Go to the source code of this file.
Functions | |
| bool | Flash_Format () |
| __weak bool | Flash_Init () |
| bool | Flash_Write (uint16_t adr, uint16_t dat) |
| bool | Flash_Read (uint16_t adr, uint16_t *buf, bool checkempty) |
| bool | Flash_ReadWriteDefault (uint16_t adr, uint16_t *buf, uint16_t def) |
| __weak bool | Flash_Read (uint16_t adr, uint16_t *buf) |
| void | Flash_Dump (std::vector< std::tuple< uint16_t, uint16_t > > *result, bool includeAll) |
| __weak bool | OTP_Write (uint16_t adroffset, uint64_t dat) |
| __weak bool | OTP_Read (uint16_t adroffset, uint64_t *dat) |
Variables | |
| cpp_freertos::MutexStandard | flashMutex |
| uint8_t | i2cBufferEeprom [sizeof(uint16_t)] = {0} |
| void Flash_Dump | ( | std::vector< std::tuple< uint16_t, uint16_t > > * | result, |
| bool | includeAll ) |
Definition at line 216 of file flash_helpers.cpp.
| bool Flash_Format | ( | ) |
Formats the eeprom emulation section to delete all data
Erases the whole EEPROM to its default value
Definition at line 23 of file flash_helpers.cpp.
| __weak bool Flash_Init | ( | ) |
Called after startup
Definition at line 32 of file flash_helpers.cpp.
| __weak bool Flash_Read | ( | uint16_t | adr, |
| uint16_t * | buf ) |
Definition at line 202 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 78 of file flash_helpers.cpp.
| bool Flash_ReadWriteDefault | ( | uint16_t | adr, |
| uint16_t * | buf, | ||
| uint16_t | def ) |
Definition at line 88 of file flash_helpers.cpp.
| bool Flash_Write | ( | uint16_t | adr, |
| uint16_t | dat ) |
Definition at line 50 of file flash_helpers.cpp.
| __weak bool OTP_Read | ( | uint16_t | adroffset, |
| uint64_t * | dat ) |
Definition at line 266 of file flash_helpers.cpp.
| __weak bool OTP_Write | ( | uint16_t | adroffset, |
| uint64_t | dat ) |
Definition at line 246 of file flash_helpers.cpp.
| cpp_freertos::MutexStandard flashMutex |
Definition at line 12 of file flash_helpers.cpp.
| uint8_t i2cBufferEeprom[sizeof(uint16_t)] = {0} |
Definition at line 107 of file flash_helpers.cpp.