libpynq
(release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
|
Go to the documentation of this file.
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],
uint8_t switchbox_get_pin(const pin_t pin_number)
void sleep_msec(int msec)
Wait for msec milliseconds.
char *const pin_names[]
Pin names.
gpio_level_t gpio_get_level(const io_t pin)
Return the level of the IO pin.
void mapping_info(void)
Displays a table to see where all pins have been mapped, what channels have been linked where and the...
char *const switchbox_names[NUM_SWITCHBOX_NAMES]
Taken from scpi_names.h, lookup table for channels in the mapping_info function.
gpio_direction_t gpio_get_direction(const io_t pin)
Returns the direction the set pin is initialized in.