rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
log_cols.h
Go to the documentation of this file.
1
22#pragma once
23
24#include <stdbool.h>
25#include <stdint.h>
26
27#include "link_pages.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#define LOG_COLS_MAX LINK_SM_CHANNELS
38#define LOG_COLS_GROUPS 3u
40#define LOG_COL_NAME_MAX 20u
41
45typedef struct {
46 uint8_t n;
47 uint8_t ch[LOG_COLS_MAX];
48 char name[LOG_COLS_MAX][LOG_COL_NAME_MAX];
50
58void log_cols_from_map(const uint16_t *map, log_cols_t *out);
59
60#ifdef __cplusplus
61}
62#endif
void log_cols_from_map(const uint16_t *map, log_cols_t *out)
The groups SENSE_MAP registers 0 to 25 map make, into out; none for a NULL map.
Definition log_cols.c:56
#define LOG_COL_NAME_MAX
"supply 0x43 ch3" and its terminator.
Definition log_cols.h:40
The log's columns: their number, targets and names.
Definition log_cols.h:45
uint8_t n
Definition log_cols.h:46
uint8_t ch[LOG_COLS_MAX]
Definition log_cols.h:47
char name[LOG_COLS_MAX][LOG_COL_NAME_MAX]
Definition log_cols.h:48