libpynq (release 5EWC0-2023 version 0.2.0 of 2023-08-28 20:33)
Loading...
Searching...
No Matches
switchbox.c
Go to the documentation of this file.
1#include <switchbox.h>
3void switchbox_init(void){};
4void switchbox_set_pin(const int32_t pin_number, const uint8_t pin_type){};
5void switchbox_reset(void){};
6void switchbox_destroy(void){};
7uint8_t switchbox_get_pin(const int32_t pin_number){};
void switchbox_destroy(void)
Resets all pins of the switch box to be input.
Definition switchbox.c:6
uint8_t switchbox_get_pin(const int32_t pin_number)
Sets the mode of a specified pin.
Definition switchbox.c:7
void switchbox_set_pin(const int32_t pin_number, const uint8_t pin_type)
Set the type of a switch pin.
Definition switchbox.c:4
#define NUM_SWITCHBOX_NAMES
Definition switchbox.h:133
void switchbox_reset(void)
Resets all pins of the switch box to be input.
Definition switchbox.c:5
void switchbox_init(void)
Initializes the switch box.
Definition switchbox.c:3
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