38 const uint8_t NR_PINS = 64;
39 pin_t pin_array[NR_PINS];
40 printf(
"Pin\tName\tI/O\tLevel\tChannel\tCh_Name\n");
41 for (
int i = 0; i < NR_PINS; i++) {
45 pin_array[i].
level =
"high";
47 pin_array[i].
level =
"low";
49 pin_array[i].
level =
"undef";
54 printf(
"%i\t%s\t%s\t%s\t%u\t", i, pin_array[i].name, pin_array[i].state,
55 pin_array[i].level, pin_array[i].channel);
gpio_direction_t gpio_get_direction(const gpio_t pin)
Returns the direction the set pin is initialized in.
gpio_level_t gpio_get_level(const gpio_t pin)
Return the level of the GPIO pin.
char *const pin_names[]
Pin names.
uint8_t switchbox_get_pin(const int32_t pin_number)
Sets the mode of a specified pin.
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...