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 pin_t pin)
Returns the direction the set pin is initialized in.
gpio_level_t gpio_get_level(const pin_t pin)
Return the level of the GPIO pin.
char *const pin_names[]
Pin names.
uint8_t switchbox_get_pin(const pin_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...