GPS Device
Loading...
Searching...
No Matches
datalog_handle_s Struct Reference

Internal structure representing a single data log instance. More...

Public Attributes

char name [CONFIG_DATALOG_MAX_NAME_LEN]
DATALOG_TIME_te datalog_time
uint32_t last_upd_time
FATFS fs
FIL fil
FRESULT fr
UINT bw
UINT br
bool in_use
bool initialized

Detailed Description

Internal structure representing a single data log instance.

Holds all runtime state for one log, including the FatFs objects, the configured logging interval, the timestamp of the last write, and lifecycle flags.

This structure is opaque to the caller; it is accessed only through the DATALOG_HANDLE_ts pointer returned by datalog_init_handle.

Definition at line 37 of file datalog.c.

Member Data Documentation

◆ name

char datalog_handle_s::name[CONFIG_DATALOG_MAX_NAME_LEN]

Human-readable name of this log instance (null-terminated).

Definition at line 39 of file datalog.c.

◆ datalog_time

DATALOG_TIME_te datalog_handle_s::datalog_time

Configured logging interval.

Definition at line 42 of file datalog.c.

◆ last_upd_time

uint32_t datalog_handle_s::last_upd_time

Systick timestamp (ms) of the most recent log write.

Definition at line 45 of file datalog.c.

◆ fs

FATFS datalog_handle_s::fs

FatFs filesystem object for this log instance.

Definition at line 48 of file datalog.c.

◆ fil

FIL datalog_handle_s::fil

FatFs file object for the log file.

Definition at line 51 of file datalog.c.

◆ fr

FRESULT datalog_handle_s::fr

Most recent FatFs result code.

Definition at line 54 of file datalog.c.

◆ bw

UINT datalog_handle_s::bw

Bytes written in the most recent f_write call.

Definition at line 57 of file datalog.c.

◆ br

UINT datalog_handle_s::br

Bytes read in the most recent f_read call.

Definition at line 60 of file datalog.c.

◆ in_use

bool datalog_handle_s::in_use

True when this slot is occupied by an active log instance.

Definition at line 63 of file datalog.c.

◆ initialized

bool datalog_handle_s::initialized

True when this handle has been fully initialized.

Definition at line 66 of file datalog.c.


The documentation for this struct was generated from the following file: