|
VMX-pi C++ HAL Library for Raspberry Pi
VMX-pi Robotics Controller & Vision/Motion Processor
|
Go to the source code of this file.
Macros | |
| #define | INVALID_VMX_RESOURCE_HANDLE(vmx_res_handle) (((uint8_t)vmx_res_handle)==INVALID_VMX_RESOURCE_INDEX) |
| Macro that returns true if the provide VMX Resource Handle is invalid. | |
| #define | CREATE_VMX_RESOURCE_HANDLE(res_type, res_index) ((((uint16_t)res_type)<<8) | (uint8_t)res_index) |
| Macro that creates a VMX Resource Handle from a VMXResourceType and VMXResourceIndex. | |
| #define | EXTRACT_VMX_RESOURCE_TYPE(res_handle) (VMXResourceType)(res_handle >> 8) |
| Macro that extracts a VMXResourceType from VMXResourceHandle. | |
| #define | EXTRACT_VMX_RESOURCE_INDEX(res_handle) (uint8_t)(res_handle & 0x00FF) |
| Macro that extracts a VMXResourcIndex from a VMXResourceHandle. | |
Typedefs | |
| typedef uint8_t | VMXResourceIndex |
| Zero-based index of a particular VMX Resource, relative to a specific VMXResourceType. | |
| typedef uint16_t | VMXResourceHandle |
| Handle to a particular VMX Resource. | |
| typedef uint8_t | VMXResourcePortIndex |
| Zero-based index of a particular VMX Resource Port of a VMX Resource. | |
Enumerations | |
| enum | VMXResourceType { Undefined, DigitalIO, PWMGenerator, PWMCapture, Encoder, Accumulator, AnalogTrigger, Interrupt, UART, SPI, I2C, MaxVMXResourceType = I2C } |
| Enumerates the various types of VMXResources. More... | |
Variables | |
| const VMXResourceIndex | INVALID_VMX_RESOURCE_INDEX = 255 |
| Value indicating a VMXResourceIndex is invalid. | |
| enum VMXResourceType |
Enumerates the various types of VMXResources.
1.8.13