Log_flash#
- group drv_log_flash
Helper library for logging data to flash.
Depends on the Non Volatile Memory Controller driver module
- Author
Alexandre Abadie alexandre.abadie@inria.fr
- Copyright
Inria, 2023
Defines
-
DB_LOG_MAGIC#
Magic number for log data.
Functions
-
void db_log_flash_init(db_log_data_type_t type)#
Initialize the log_flash driver.
- Parameters:
type – [in] Type of log data to log to flash
-
void db_log_flash_write(const void *data, size_t len)#
Write log data to flash.
- Parameters:
data – [in] Pointer to the log data to write
len – [in] Length of log data to write
-
struct db_log_header_t#
Log header.
Public Members
-
uint16_t magic#
Magic number.
-
uint8_t version#
Log data version.
-
db_log_data_type_t log_type#
Log data type.
-
uint16_t magic#
-
struct db_log_dotbot_data_t#
Public Members
-
int32_t direction#
Direction of the DotBot.
-
uint32_t pos_x#
X position of the DotBot.
-
uint32_t pos_y#
Y position of the DotBot.
-
uint16_t next_waypoint_idx#
Index of the next waypoint.
-
uint32_t distance_to_target#
Distance to the target.
-
int16_t angle_to_target#
Angle to the target.
-
int16_t error_angle#
Error angle.
-
int16_t angular_speed#
Angular speed.
-
int16_t left_speed#
Left wheel speed.
-
int16_t right_speed#
Right wheel speed.
-
int32_t direction#