|
ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
#include "ruuvi_driver_error.h"#include "ruuvi_driver_sensor.h"#include "ruuvi_interface_flash.h"#include "ruuvi_interface_log.h"Go to the source code of this file.
Functions | |
| rd_status_t | rt_flash_init (void) |
| Initialize flash storage. | |
| rd_status_t | rt_flash_store (const uint16_t file_id, const uint16_t record_id, const void *const message, const size_t message_length) |
| Store data to flash. | |
| rd_status_t | rt_flash_load (const uint16_t file_id, const uint16_t record_id, void *const message, const size_t message_length) |
| Load data from flash. | |
| rd_status_t | rt_flash_free (const uint16_t file_id, const uint16_t record_id) |
| Free data from flash. | |
| rd_status_t | rt_flash_gc_run (void) |
| Trigger garbage collection. | |
| bool | rt_flash_busy (void) |
| Check if flash is running an operation. | |
Store and load data to/from persistent storage. Typical usage:
Definition in file ruuvi_task_flash.h.