ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
Loading...
Searching...
No Matches
log_sector_hdr_t Struct Reference

sector header More...

#include <log_format.h>

Data Fields

uint32_t magic
 
uint32_t serial
 global sector write counter: the newest sector has the highest
 
uint16_t log_id
 increments for every new log

 
uint16_t seq
 sector index inside the log, 0 = first

 
uint32_t t0_ms
 uptime when the log started

 
uint8_t format
 LOG_FORMAT

 
uint8_t rsv
 
uint16_t crc
 CRC-16/CCITT-FALSE of the 18 bytes above

 

Detailed Description

sector header

Definition at line 38 of file log_format.h.

Field Documentation

◆ magic

uint32_t log_sector_hdr_t::magic

Definition at line 39 of file log_format.h.

Referenced by hdr_ok(), and start_sector().

◆ serial

uint32_t log_sector_hdr_t::serial

global sector write counter: the newest sector has the highest

Definition at line 40 of file log_format.h.

Referenced by log_mount(), and start_sector().

◆ log_id

uint16_t log_sector_hdr_t::log_id

increments for every new log

Definition at line 41 of file log_format.h.

Referenced by log_mount(), and start_sector().

◆ seq

uint16_t log_sector_hdr_t::seq

sector index inside the log, 0 = first

Definition at line 42 of file log_format.h.

Referenced by log_mount(), and start_sector().

◆ t0_ms

uint32_t log_sector_hdr_t::t0_ms

uptime when the log started

Definition at line 43 of file log_format.h.

Referenced by log_mount(), and start_sector().

◆ format

uint8_t log_sector_hdr_t::format

LOG_FORMAT

Definition at line 44 of file log_format.h.

Referenced by hdr_ok(), and start_sector().

◆ rsv

uint8_t log_sector_hdr_t::rsv

Definition at line 45 of file log_format.h.

◆ crc

uint16_t log_sector_hdr_t::crc

CRC-16/CCITT-FALSE of the 18 bytes above

Definition at line 46 of file log_format.h.

Referenced by hdr_ok(), and start_sector().


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