CMSIS-Driver  Version 2.8.0
Peripheral Interface for Middleware and Application Code
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cmsis_vio.h File Reference

Data Structures

struct  vioValueXYZ_t
 3-D vector value More...
 
struct  vioAddrIPv4_t
 IPv4 Internet Address. More...
 
struct  vioAddrIPv6_t
 IPv6 Internet Address. More...
 

Macros

#define vioLED0   (1U << 0)
 vioSetSignal mask parameter: LED 0 (for 3-color: red) More...
 
#define vioLED1   (1U << 1)
 vioSetSignal mask parameter: LED 1 (for 3-color: green) More...
 
#define vioLED2   (1U << 2)
 vioSetSignal mask parameter: LED 2 (for 3-color: blue) More...
 
#define vioLED3   (1U << 3)
 vioSetSignal mask parameter: LED 3 More...
 
#define vioLED4   (1U << 4)
 vioSetSignal mask parameter: LED 4 More...
 
#define vioLED5   (1U << 5)
 vioSetSignal mask parameter: LED 5 More...
 
#define vioLED6   (1U << 6)
 vioSetSignal mask parameter: LED 6 More...
 
#define vioLED7   (1U << 7)
 vioSetSignal mask parameter: LED 7 More...
 
#define vioLEDon   (0xFFU)
 vioSetSignal signal parameter: pattern to turn any LED on More...
 
#define vioLEDoff   (0x00U)
 vioSetSignal signal parameter: pattern to turn any LED off More...
 
#define vioBUTTON0   (1U << 0)
 vioGetSignal mask parameter: Push button 0 More...
 
#define vioBUTTON1   (1U << 1)
 vioGetSignal mask parameter: Push button 1 More...
 
#define vioBUTTON2   (1U << 2)
 vioGetSignal mask parameter: Push button 2 More...
 
#define vioBUTTON3   (1U << 3)
 vioGetSignal mask parameter: Push button 3 More...
 
#define vioJOYup   (1U << 4)
 vioGetSignal mask parameter: Joystick button: up More...
 
#define vioJOYdown   (1U << 5)
 vioGetSignal mask parameter: Joystick button: down More...
 
#define vioJOYleft   (1U << 6)
 vioGetSignal mask parameter: Joystick button: left More...
 
#define vioJOYright   (1U << 7)
 vioGetSignal mask parameter: Joystick button: right More...
 
#define vioJOYselect   (1U << 8)
 vioGetSignal mask parameter: Joystick button: select More...
 
#define vioJOYall
 vioGetSignal mask Joystick button: all More...
 
#define vioAIN0   (0U)
 vioSetValue / vioGetValue id parameter: Analog input value 0 More...
 
#define vioAIN1   (1U)
 vioSetValue / vioGetValue id parameter: Analog input value 1 More...
 
#define vioAIN2   (2U)
 vioSetValue / vioGetValue id parameter: Analog input value 2 More...
 
#define vioAIN3   (3U)
 vioSetValue / vioGetValue id parameter: Analog input value 3 More...
 
#define vioAOUT0   (3U)
 vioSetValue / vioGetValue id parameter: Analog output value 0 More...
 
#define vioMotionGyro   (0U)
 vioSetXYZ / vioGetXYZ id parameter: for Gyroscope More...
 
#define vioMotionAccelero   (1U)
 vioSetXYZ / vioGetXYZ id parameter: for Accelerometer More...
 
#define vioMotionMagneto   (2U)
 vioSetXYZ / vioGetXYZ id parameter: for Magnetometer More...
 
#define vioLevelNone   (0U)
 vioPrint level parameter: None More...
 
#define vioLevelHeading   (1U)
 vioPrint level parameter: Heading More...
 
#define vioLevelMessage   (2U)
 vioPrint level parameter: Message More...
 
#define vioLevelError   (3U)
 vioPrint level parameter: Error More...
 

Functions

void vioInit (void)
 Initialize test input, output. More...
 
int32_t vioPrint (uint32_t level, const char *format,...)
 Print formated string to test terminal. More...
 
void vioSetSignal (uint32_t mask, uint32_t signal)
 Set signal output. More...
 
uint32_t vioGetSignal (uint32_t mask)
 Get signal input. More...
 
void vioSetValue (uint32_t id, int32_t value)
 Set value output. More...
 
int32_t vioGetValue (uint32_t id)
 Get value input. More...
 
void vioSetXYZ (uint32_t id, vioValueXYZ_t valueXYZ)
 Set XYZ value output. More...
 
vioValueXYZ_t vioGetXYZ (uint32_t id)
 Get XYZ value input. More...
 
void vioSetIPv4 (uint32_t id, vioAddrIPv4_t addrIPv4)
 Set IPv4 address output. More...
 
vioAddrIPv4_t vioGetIPv4 (uint32_t id)
 Get IPv4 address input. More...
 
void vioSetIPv6 (uint32_t id, vioAddrIPv6_t addrIPv6)
 Set IPv6 address output. More...
 
vioAddrIPv6_t vioGetIPv6 (uint32_t id)
 Get IPv6 address from peripheral. More...