K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
Loading...
Searching...
No Matches
log_history.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Data Structures

struct  kfsw_log_record
 
struct  kfsw_log_history_window
 

Macros

#define KFSW_LOG_TEXT_SIZE   192U
 
#define KFSW_LOG_HISTORY_MAX_READ   32U
 

Functions

int kfsw_log_history_window (uint16_t count, struct kfsw_log_history_window *window)
 
int kfsw_log_history_get (uint64_t sequence, struct kfsw_log_record *record)
 
int kfsw_log_history_server_start (void)
 

Description

Bounded, non-destructive text log history.

Function Documentation

◆ kfsw_log_history_get()

int kfsw_log_history_get ( uint64_t  sequence,
struct kfsw_log_record *  record 
)

Read one sequence.

-ENOENT means it was overwritten or never recorded.

◆ kfsw_log_history_server_start()

int kfsw_log_history_server_start ( void  )

Start the optional CSP server after the router has started.

◆ kfsw_log_history_window()

int kfsw_log_history_window ( uint16_t  count,
struct kfsw_log_history_window *  window 
)

Snapshot the bounds of the newest count records, without consuming them.