22 #ifndef VMXRESOURCE_H_ 23 #define VMXRESOURCE_H_ 30 #include "VMXErrors.h" 55 MaxVMXResourceType =
I2C,
69 #define INVALID_VMX_RESOURCE_HANDLE(vmx_res_handle) (((uint8_t)vmx_res_handle)==INVALID_VMX_RESOURCE_INDEX) 71 #define CREATE_VMX_RESOURCE_HANDLE(res_type,res_index) ((((uint16_t)res_type)<<8) | (uint8_t)res_index) 73 #define EXTRACT_VMX_RESOURCE_TYPE(res_handle) (VMXResourceType)(res_handle >> 8) 75 #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:42
uint16_t VMXResourceHandle
Handle to a particular VMX Resource.
Definition: VMXResource.h:61
const VMXResourceIndex INVALID_VMX_RESOURCE_INDEX
Value indicating a VMXResourceIndex is invalid.
Definition: VMXResource.h:66
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:54
VMX Resource providing Interrupt generation from a VMX Analog Input Channel.
Definition: VMXResource.h:46
VMX Resource providing SPI communication via a four VMX Channel set.
Definition: VMXResource.h:52
uint8_t VMXResourceIndex
Zero-based index of a particular VMX Resource, relative to a specific VMXResourceType.
Definition: VMXResource.h:59
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 UART communication via a VMX Channel pair.
Definition: VMXResource.h:50
VMX Resource providing PWM Capture of a VMX FlexIO Digital Channel in input mode. ...
Definition: VMXResource.h:40
uint8_t VMXResourcePortIndex
Zero-based index of a particular VMX Resource Port of a VMX Resource.
Definition: VMXResource.h:63
VMX Resource providing Interrupt generation from a VMX Digital Channel in input mode.
Definition: VMXResource.h:48
VMX Resource providing Oversampling/Averaging of a VMX Analog Input Channel.
Definition: VMXResource.h:44