CMSIS-Driver  
Peripheral Interface for Middleware and Application Code
 
Loading...
Searching...
No Matches
cmsis_vio.h File Reference

Macros

#define vioLED0   (1U << 0)
 vioSetSignal mask parameter: LED 0 (for 3-color: red)
 
#define vioLED1   (1U << 1)
 vioSetSignal mask parameter: LED 1 (for 3-color: green)
 
#define vioLED2   (1U << 2)
 vioSetSignal mask parameter: LED 2 (for 3-color: blue)
 
#define vioLED3   (1U << 3)
 vioSetSignal mask parameter: LED 3
 
#define vioLED4   (1U << 4)
 vioSetSignal mask parameter: LED 4
 
#define vioLED5   (1U << 5)
 vioSetSignal mask parameter: LED 5
 
#define vioLED6   (1U << 6)
 vioSetSignal mask parameter: LED 6
 
#define vioLED7   (1U << 7)
 vioSetSignal mask parameter: LED 7
 
#define vioLEDon   (0xFFU)
 vioSetSignal signal parameter: pattern to turn any LED on
 
#define vioLEDoff   (0x00U)
 vioSetSignal signal parameter: pattern to turn any LED off
 
#define vioBUTTON0   (1U << 0)
 vioGetSignal mask parameter: Push button 0
 
#define vioBUTTON1   (1U << 1)
 vioGetSignal mask parameter: Push button 1
 
#define vioBUTTON2   (1U << 2)
 vioGetSignal mask parameter: Push button 2
 
#define vioBUTTON3   (1U << 3)
 vioGetSignal mask parameter: Push button 3
 
#define vioJOYup   (1U << 4)
 vioGetSignal mask parameter: Joystick button: up
 
#define vioJOYdown   (1U << 5)
 vioGetSignal mask parameter: Joystick button: down
 
#define vioJOYleft   (1U << 6)
 vioGetSignal mask parameter: Joystick button: left
 
#define vioJOYright   (1U << 7)
 vioGetSignal mask parameter: Joystick button: right
 
#define vioJOYselect   (1U << 8)
 vioGetSignal mask parameter: Joystick button: select
 
#define vioJOYall
 vioGetSignal mask Joystick button: all
 
#define vioAIN0   (0U)
 vioSetValue / vioGetValue id parameter: Analog input value 0
 
#define vioAIN1   (1U)
 vioSetValue / vioGetValue id parameter: Analog input value 1
 
#define vioAIN2   (2U)
 vioSetValue / vioGetValue id parameter: Analog input value 2
 
#define vioAIN3   (3U)
 vioSetValue / vioGetValue id parameter: Analog input value 3
 
#define vioAOUT0   (4U)
 vioSetValue / vioGetValue id parameter: Analog output value 0
 

Functions

void vioInit (void)
 Initialize test input, output.
 
void vioSetSignal (uint32_t mask, uint32_t signal)
 Set signal output.
 
uint32_t vioGetSignal (uint32_t mask)
 Get signal input.
 
void vioSetValue (uint32_t id, int32_t value)
 Set value output.
 
int32_t vioGetValue (uint32_t id)
 Get value input.