HAL storage implementation that dispatches operations to the registered port. More...
Go to the source code of this file.
Functions | |
| SPP_RetVal_t | SPP_HAL_STORAGE_init (void) |
| Initializes the storage device through the registered HAL port. | |
| SPP_RetVal_t | SPP_HAL_STORAGE_write (const void *p_buffer, spp_uint32_t first_block, spp_uint16_t count) |
| Writes consecutive storage blocks through the HAL. | |
HAL storage implementation that dispatches operations to the registered port.
Definition in file storage.c.
| SPP_RetVal_t SPP_HAL_STORAGE_init | ( | void | ) |
Initializes the storage device through the registered HAL port.
Definition at line 18 of file storage.c.
References K_SPP_ERROR, K_SPP_ERROR_NULL_POINTER, K_SPP_OK, SPP_HAL_getPort(), SPP_HAL_STORAGE_init(), SPP_HalPort_t::storage, and SPP_HALStorage_t::storageInit.
Referenced by SPP_HAL_STORAGE_init(), and SPP_SERVICES_DATALOGGER_init().
| SPP_RetVal_t SPP_HAL_STORAGE_write | ( | const void * | p_buffer, |
| spp_uint32_t | first_block, | ||
| spp_uint16_t | count ) |
Writes consecutive storage blocks through the HAL.
| p_buffer | Pointer to the data buffer (512 bytes per block on ESP32). |
| first_block | Index of the first block to write. |
| count | Number of consecutive blocks to write. |
Definition at line 38 of file storage.c.
References K_SPP_ERROR, K_SPP_ERROR_NULL_POINTER, K_SPP_OK, SPP_HAL_getPort(), SPP_HAL_STORAGE_write(), SPP_HalPort_t::storage, and SPP_HALStorage_t::storageWrite.
Referenced by SPP_HAL_STORAGE_write(), and SPP_SERVICES_DATALOGGER_consumeData().