|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The bench log's INA3221 columns with SENSE_MAP in force (protocol 4.25): one group of three per channel that watches something, named after what it watches: FAST's channel first, then the others in channel order, at most LOG_COLS_GROUPS of them. More...
Go to the source code of this file.
Data Structures | |
| struct | log_cols_t |
| The log's columns: their number, targets and names. More... | |
Functions | |
| 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. | |
The bench log's INA3221 columns with SENSE_MAP in force (protocol 4.25): one group of three per channel that watches something, named after what it watches: FAST's channel first, then the others in channel order, at most LOG_COLS_GROUPS of them.
The reader takes 24 columns (LOG_MAX_COLUMNS), and the bench file's other columns are 14 of them, so a channel past the third watching one is not logged.
A channel takes a group when its part is enabled, its shunt is not 0 and its WATCH is not NONE. The group is "<target> current (A); <target> max (A); <target> voltage (V)": the window's mean and highest current and its lowest bus voltage. <target> is "out N" for output channel N, "port N" for programming port N and "supply" for the supply rail. Two channels that watch the same target each name their channel after it, "out 3 0x41 ch2", so no two columns share a name.
SPDX-License-Identifier: MIT
| 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.
| map | The SENSE_MAP registers 0 to 25, or NULL. |
| out | Receives the groups. |