38 const char *
const dir[2] = {
"Input",
"Output"};
39 printf(
"Pin\tName\tI/O\tLevel\tChannel\tCh_Name\t\tState\n");
47 pin_array.
level =
"high";
49 pin_array.
level =
"low";
51 pin_array.
level =
"undef";
56 printf(
"%i\t%s\t%s\t%s\t%u\t", i, pin_array.
name, dir[pin_array.
state],
gpio_direction_t gpio_get_direction(const gpio_t pin)
gpio_level_t gpio_get_level(const gpio_t pin)
uint8_t switchbox_get_pin(const int32_t pin_number)
char *const pin_names[]
Pin names.
char *const switchbox_names[NUM_SWITCHBOX_NAMES]
Taken from scpi_names.h, lookup table for channels in the mapping_info function.
void sleep_msec(int msec)
Wait for msec milliseconds.
void mapping_info(void)
Displays a table to see where all pins have been mapped, what channels have been linked where and the...