rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Toggle main menu visibility
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
30
extern
"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
45
typedef
struct
{
46
uint8_t
n
;
47
uint8_t
ch
[LOG_COLS_MAX];
48
char
name
[LOG_COLS_MAX][
LOG_COL_NAME_MAX
];
49
}
log_cols_t
;
50
58
void
log_cols_from_map
(
const
uint16_t *map,
log_cols_t
*out);
59
60
#ifdef __cplusplus
61
}
62
#endif
link_pages.h
The page map: what the panel can ask the IOmcu for, and set.
log_cols_from_map
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
LOG_COL_NAME_MAX
#define LOG_COL_NAME_MAX
"supply 0x43 ch3" and its terminator.
Definition
log_cols.h:40
log_cols_t
The log's columns: their number, targets and names.
Definition
log_cols.h:45
log_cols_t::n
uint8_t n
Definition
log_cols.h:46
log_cols_t::ch
uint8_t ch[LOG_COLS_MAX]
Definition
log_cols.h:47
log_cols_t::name
char name[LOG_COLS_MAX][LOG_COL_NAME_MAX]
Definition
log_cols.h:48
shared
bench
include
log_cols.h
Generated by
1.18.0