22 #ifndef VMXRESOURCE_H_ 23 #define VMXRESOURCE_H_ 30 #include "VMXErrors.h" 74 #define INVALID_VMX_RESOURCE_HANDLE(vmx_res_handle) (((uint8_t)vmx_res_handle)==INVALID_VMX_RESOURCE_INDEX) 76 #define CREATE_VMX_RESOURCE_HANDLE(res_type,res_index) ((((uint16_t)res_type)<<8) | (uint8_t)res_index) 78 #define EXTRACT_VMX_RESOURCE_TYPE(res_handle) (VMXResourceType)(res_handle >> 8) 80 #define EXTRACT_VMX_RESOURCE_INDEX(res_handle) (uint8_t)(res_handle & 0x00FF) VMX Resource providing Quadrature Encoder of a VMX Channel pair in input mode.
Definition: VMXResource.h:45
uint16_t VMXResourceHandle
Handle to a particular VMX Resource.
Definition: VMXResource.h:66
const VMXResourceIndex INVALID_VMX_RESOURCE_INDEX
Value indicating a VMXResourceIndex is invalid.
Definition: VMXResource.h:71
VMX Resource providing Digital Input and Digital Output Control on a VMX Digital Channel.
Definition: VMXResource.h:36
VMX Resource providing I2C communication via a VMX Channel pair.
Definition: VMXResource.h:57
VMX Resource providing Interrupt generation from a VMX Analog Input Channel.
Definition: VMXResource.h:49
VMX Resource providing SPI communication via a four VMX Channel set.
Definition: VMXResource.h:55
uint8_t VMXResourceIndex
Zero-based index of a particular VMX Resource, relative to a specific VMXResourceType.
Definition: VMXResource.h:64
VMX Resource providing Timer Input Capture of a VMX FlexIO Digital Channel in input mode...
Definition: VMXResource.h:40
VMXResourceType
Enumerates the various types of VMXResources.
Definition: VMXResource.h:33
VMX Resource providing PWM Generation Control of a VMX Digital Channel in output mode.
Definition: VMXResource.h:38
VMX Resource providing One-wire LEDArray management via a VMX Channel.
Definition: VMXResource.h:59
VMX Resource providing UART communication via a VMX Channel pair.
Definition: VMXResource.h:53
VMX Resource providing PWM Capture of a VMX FlexIO Digital Channel in input mode. ...
Definition: VMXResource.h:43
uint8_t VMXResourcePortIndex
Zero-based index of a particular VMX Resource Port of a VMX Resource.
Definition: VMXResource.h:68
VMX Resource providing Interrupt generation from a VMX Digital Channel in input mode.
Definition: VMXResource.h:51
VMX Resource providing Oversampling/Averaging/Accumulation of a VMX Analog Input Channel.
Definition: VMXResource.h:47