libpynq  (release 5EID0-2023 version 0.3.0 of 2024-04-25 09:42 )
switchbox.c
Go to the documentation of this file.
1 #include <switchbox.h>
3 void switchbox_init(void){};
4 void switchbox_set_pin(const pin_t pin_number, const uint8_t pin_type){};
5 void switchbox_reset(void){};
6 void switchbox_destroy(void){};
7 uint8_t switchbox_get_pin(const pin_t pin_number){};
switchbox_get_pin
uint8_t switchbox_get_pin(const pin_t pin_number)
Definition: switchbox.c:7
switchbox_set_pin
void switchbox_set_pin(const pin_t pin_number, const uint8_t pin_type)
Definition: switchbox.c:4
NUM_SWITCHBOX_NAMES
#define NUM_SWITCHBOX_NAMES
Definition: switchbox.h:135
switchbox.h
switchbox_init
void switchbox_init(void)
Initializes the switch box.
Definition: switchbox.c:3
switchbox_reset
void switchbox_reset(void)
Resets all pins of the switch box to be input.
Definition: switchbox.c:5
only
Use these implementations when compiling on Oncourse Bit of a hack since ideally this would have been done with If a new function doesn t get added here then it ll give an error only when it s used in the this hack will work only for Oncourse programs that use PYNQ output only(e.g. sorting)
switchbox_destroy
void switchbox_destroy(void)
Resets all pins of the switch box to be input.
Definition: switchbox.c:6
switchbox_names
char *const switchbox_names[NUM_SWITCHBOX_NAMES]
Taken from scpi_names.h, lookup table for channels in the mapping_info function.
Definition: switchbox.c:2