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

Internal state of the SysTick driver. More...

Collaboration diagram for internal_state_s:

Public Attributes

uint32_t volatile elapsed_ms
bool initialized
struct button_handle_s buttons [CONFIG_BUTTON_MAX_OBJECTS]
uint8_t button_num
LOG_LEVEL_te log_level
MODULES_te subsys
bool started
CMD_CLIENT_INFO_tscmd_client_info_arr [CONFIG_CMD_MAX_CLIENTS]
CBUF_HANDLE_ts usart_data_recv_cbuf
CBUF_HANDLE_ts console_cbuf
USART_REGDEF_tsusart_instance
bool console_mode
DATALOG_HANDLE_ts datalogs [CONFIG_DATALOG_MAX_OBJECTS]
uint32_t datalog_num
IO_HANDLE_ts ios [CONFIG_IO_MAX_OBJECTS]
uint32_t io_num
bool force_disable
struct menu_handle_s menus [CONFIG_MENU_MAX_OBJECTS]
uint8_t menu_num
NEO6_HANDLE_ts neo6_handle
CBUF_HANDLE_ts nmea_cbuf
NEO6_INFO_ts neo6_info
bool dump_raw_nmea
SD_HANDLE_ts sds [CONFIG_SD_MAX_OBJECTS]
uint32_t sd_num
SSD1309_HANDLE_ts ssd1309_handle
uint8_t fb [SSD1309_PAGE_NUM][SSD1309_COL_NUM]

Detailed Description

Internal state of the SysTick driver.

Internal state of the SSD1309 subsystem.

Internal state of the SD card subsystem.

Internal state of the NEO-6 subsystem.

Internal state of the menu subsystem.

Internal state of the log subsystem.

Internal state of the IO subsystem.

Internal state of the data log subsystem.

Internal state of the console subsystem.

Internal state of the command subsystem.

Internal state of the button subsystem.

Holds the millisecond counter incremented by SysTick_Handler and an initialization guard to prevent double-initialization.

Holds the pool of button handles, the count of registered buttons, and the subsystem lifecycle flags (initialized / started).

Accessed only through the module's public API.

Holds the registered client table and the subsystem's own log level. Statically initialized at startup; no explicit init function is required.

Holds the two circular buffers, a pointer to the active USART instance, and the current console mode flag. Statically initialized at startup.

Holds the pool of log handles, the count of active handles, and the subsystem lifecycle flags.

Holds the pool of IO handles, the count of active handles, and the subsystem lifecycle flags.

Holds the active USART instance, the force-disable flag used by the console module during interactive input, and an initialization guard.

Holds the pool of menu handles, the count of active handles, and the subsystem lifecycle flags.

Holds the single hardware handle, both circular buffers, the parsed GPS info structure, and the subsystem lifecycle flags.

Holds the pool of SD card handles, the count of active handles, and the subsystem lifecycle flags.

Holds the single hardware handle, the display framebuffer, and the subsystem lifecycle flags.

Definition at line 24 of file arm_cortex_m4_systick.c.

Member Data Documentation

◆ elapsed_ms

uint32_t volatile internal_state_s::elapsed_ms

Milliseconds elapsed since systick_init was called. Incremented by the SysTick ISR.

Definition at line 26 of file arm_cortex_m4_systick.c.

◆ initialized

bool internal_state_s::initialized

True after systick_init has completed successfully.

True after button_init_subsys has completed successfully.

True after datalog_init_subsys has completed successfully.

True after io_init_subsys has completed successfully.

True after log_init has completed successfully.

True after menu_init_subsys has completed successfully.

True after neo6_init_subsys has completed successfully.

True after sd_init_subsys has completed successfully.

True after ssd1309_init_subsys has completed successfully.

Definition at line 29 of file arm_cortex_m4_systick.c.

◆ buttons

struct button_handle_s internal_state_s::buttons[CONFIG_BUTTON_MAX_OBJECTS]

Pool of button handle instances.

Definition at line 86 of file button.c.

◆ button_num

uint8_t internal_state_s::button_num

Number of currently registered (in-use) button handles.

Definition at line 89 of file button.c.

◆ log_level

LOG_LEVEL_te internal_state_s::log_level

Active log level for this subsystem.

Active log level for command subsystem messages.

Definition at line 92 of file button.c.

◆ subsys

MODULES_te internal_state_s::subsys

Module identifier used for log messages.

Definition at line 95 of file button.c.

◆ started

bool internal_state_s::started

True after button_start_subsys has been called.

True after datalog_start_subsys has been called.

True after io_start_subsys has been called.

True after menu_start_subsys has been called.

True after neo6_start_subsys has been called.

True after sd_start_subsys has been called.

True after ssd1309_start_subsys has been called.

Definition at line 101 of file button.c.

◆ cmd_client_info_arr

CMD_CLIENT_INFO_ts* internal_state_s::cmd_client_info_arr[CONFIG_CMD_MAX_CLIENTS]

Table of pointers to registered client descriptors. NULL slots are unused.

Definition at line 36 of file cmd.c.

◆ usart_data_recv_cbuf

CBUF_HANDLE_ts internal_state_s::usart_data_recv_cbuf

Circular buffer used to receive raw bytes from the USART ISR.

Circular buffer receiving raw bytes from the USART ISR.

Definition at line 60 of file console.c.

◆ console_cbuf

CBUF_HANDLE_ts internal_state_s::console_cbuf

Circular buffer used to accumulate a command string in console mode.

Definition at line 63 of file console.c.

◆ usart_instance

USART_REGDEF_ts * internal_state_s::usart_instance

Pointer to the active USART peripheral instance.

Pointer to the USART peripheral used for log output.

Definition at line 66 of file console.c.

◆ console_mode

bool internal_state_s::console_mode

True when the console is in interactive input mode.

Definition at line 69 of file console.c.

◆ datalogs

DATALOG_HANDLE_ts internal_state_s::datalogs[CONFIG_DATALOG_MAX_OBJECTS]

Pool of data log handle instances.

Definition at line 78 of file datalog.c.

◆ datalog_num

uint32_t internal_state_s::datalog_num

Number of currently active (in-use) log handles.

Definition at line 81 of file datalog.c.

◆ ios

IO_HANDLE_ts internal_state_s::ios[CONFIG_IO_MAX_OBJECTS]

Pool of IO handle instances.

Definition at line 49 of file io.c.

◆ io_num

uint32_t internal_state_s::io_num

Number of currently active (in-use) IO handles.

Definition at line 52 of file io.c.

◆ force_disable

bool internal_state_s::force_disable

When true, all log output is suppressed regardless of level.

Definition at line 38 of file log.c.

◆ menus

struct menu_handle_s internal_state_s::menus[CONFIG_MENU_MAX_OBJECTS]

Pool of menu handle instances.

Definition at line 90 of file menu.c.

◆ menu_num

uint8_t internal_state_s::menu_num

Number of currently active (in-use) menu handles.

Definition at line 93 of file menu.c.

◆ neo6_handle

NEO6_HANDLE_ts internal_state_s::neo6_handle

The single NEO-6 hardware handle.

Definition at line 128 of file neo6.c.

◆ nmea_cbuf

CBUF_HANDLE_ts internal_state_s::nmea_cbuf

Circular buffer accumulating bytes until a complete NMEA sentence is available.

Definition at line 134 of file neo6.c.

◆ neo6_info

NEO6_INFO_ts internal_state_s::neo6_info

Parsed GPS data, updated on each successful NMEA sentence parse.

Definition at line 137 of file neo6.c.

◆ dump_raw_nmea

bool internal_state_s::dump_raw_nmea

When true, raw NMEA sentences are logged via the log subsystem.

Definition at line 146 of file neo6.c.

◆ sds

SD_HANDLE_ts internal_state_s::sds[CONFIG_SD_MAX_OBJECTS]

Pool of SD card handle instances.

Definition at line 247 of file sd.c.

◆ sd_num

uint32_t internal_state_s::sd_num

Number of currently active (in-use) SD card handles.

Definition at line 256 of file sd.c.

◆ ssd1309_handle

SSD1309_HANDLE_ts internal_state_s::ssd1309_handle

The single SSD1309 hardware handle.

Definition at line 384 of file ssd1309.c.

◆ fb

uint8_t internal_state_s::fb[SSD1309_PAGE_NUM][SSD1309_COL_NUM]

Framebuffer organized as [page][column]. Each byte represents 8 vertical pixels within one page column. Modified by draw/clear/invert functions and flushed by ssd1309_update.

Definition at line 391 of file ssd1309.c.


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