K-FSW v1.2.1-59-gcaca356
KFSW: 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_encoded
 
struct  kfsw_log_history_window
 

Macros

#define KFSW_LOG_TEXT_SIZE   192U
 
#define KFSW_LOG_HISTORY_MAX_READ   32U
 
#define KFSW_LOG_ENCODED_SIZE   128U
 

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_get_encoded (uint64_t sequence, struct kfsw_log_encoded *record)
 
void kfsw_log_history_format (const struct kfsw_log_encoded *encoded, struct kfsw_log_record *record)
 

Description

Bounded, non-destructive text log history.