23 lines
634 B
C
23 lines
634 B
C
#ifndef CITS_CSV_WRITER_H
|
|
#define CITS_CSV_WRITER_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/* ---------- C-ITS Message Record (für CSV) ---------- */
|
|
typedef struct {
|
|
uint32_t timestamp_sec;
|
|
uint32_t timestamp_usec;
|
|
uint16_t length;
|
|
uint8_t sender_id[6]; // MAC Address
|
|
uint8_t message_type; // BSI Message Type
|
|
uint8_t channel; // Kanal
|
|
int16_t rssi; // Signal Stärke
|
|
} cits_message_t;
|
|
|
|
/* ---------- Public API ---------- */
|
|
esp_err_t csv_writer_init(void);
|
|
void csv_writer_deinit(void);
|
|
void csv_store_cits_message(const cits_message_t *msg);
|
|
|
|
#endif /* CITS_CSV_WRITER_H */
|