Data Structures | |
struct | XMC_VADC_CHANNEL_CONFIG_t |
struct | XMC_VADC_DETAILED_RESULT_t |
struct | XMC_VADC_GLOBAL_CLASS_t |
struct | XMC_VADC_GLOBAL_CLOCK_t |
struct | XMC_VADC_GLOBAL_CONFIG_t |
struct | XMC_VADC_GLOBAL_DETAILED_RESULT_t |
struct | XMC_VADC_GLOBAL_SHS_CONFIG_t |
struct | XMC_VADC_GROUP_CLASS_t |
struct | XMC_VADC_GROUP_CONFIG_t |
struct | XMC_VADC_GROUP_EMUXCFG_t |
struct | XMC_VADC_QUEUE_CONFIG_t |
struct | XMC_VADC_QUEUE_ENTRY_t |
struct | XMC_VADC_RESULT_CONFIG_t |
struct | XMC_VADC_SCAN_CONFIG_t |
Macros | |
#define | XMC_VADC_NUM_CHANNELS_PER_GROUP (8U) |
Typedefs | |
typedef XMC_VADC_SCAN_CONFIG_t | XMC_VADC_BACKGROUND_CONFIG_t |
typedef SHS_Type | XMC_VADC_GLOBAL_SHS_t |
typedef VADC_GLOBAL_TypeDef | XMC_VADC_GLOBAL_t |
typedef VADC_G_TypeDef | XMC_VADC_GROUP_t |
typedef uint16_t | XMC_VADC_RESULT_SIZE_t |
The XMC microcontroller provides a series of analog input channels connected to a cluster of Analog/Digital Converters using the Successive Approximation Register (SAR) principle to convert analog input values (voltages) to discrete digital values. The XMC1x is based on Sample & Hold converters, where a cluster contains 2 Sample&Hold units which share a common converter.
Each converter of the ADC cluster can operate independent of the others, controlled by a dedicated set of registers and triggered by a dedicated group request source. The results of each channel can be stored in a dedicated channel-specific result register or in a group-specific result register.
The Versatile Analog to Digital Converter module (VADC) of the XMC comprises a set of converter blocks that can be operated either independently or via a common request source that emulates a background converter. Each converter block is equipped with a dedicated input multiplexer and dedicated request sources, which together build separate groups.
The VADC LLD is split into GLOBAL and GROUP related APIs.
GLOBAL:
GROUP:
#define XMC_VADC_NUM_CHANNELS_PER_GROUP (8U) |
Defines the number of ADC channels per group
Type defined the scan configuration structure for background Request Source
typedef SHS_Type XMC_VADC_GLOBAL_SHS_t |
Type defined the sample and hold register structure
typedef VADC_GLOBAL_TypeDef XMC_VADC_GLOBAL_t |
Type defined the device header file vadc global register structure type to VADC type
typedef VADC_G_TypeDef XMC_VADC_GROUP_t |
Type defined the device header file vadc group register structure type to VADC Group type
typedef uint16_t XMC_VADC_RESULT_SIZE_t |
Type defined the converted result size to unsigned 16 bit integer
Provides possible routing values for the boundary flag.
Defines the boundary select for Channel. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_BOUNDARY_SELECT_LOWER_BOUND | Select the lower boundary |
XMC_VADC_BOUNDARY_SELECT_UPPER_BOUND | Selects the upper boundary |
Defines channel alias. All enum items are available for channels 0 and 1. Other Channels can accept only XMC_VADC_CHANNEL_ALIAS_DISABLED.
Defines the criteria for boundary flag assertion. Use XMC_VADC_CHANNEL_BOUNDARY_CONDITION_t for this enumeration.
Defines the references to boundary values used for limit checking feature. Each of these can be assigned as either an upper bound or a lower bound. Use XMC_VADC_CHANNEL_BOUNDARY_t for this enumeration.
Defines the voltage which the capacitor is charged to. Used in Broken wire detection feature. Use XMC_VADC_CHANNEL_BWDCH_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_CHANNEL_BWDCH_VAGND | Capacitor pre-charged to ground |
XMC_VADC_CHANNEL_BWDCH_VAREF | Capacitor pre-charged to reference voltage |
Defines the conversion classes that can be selected for each channel. The enumeration members holds the group or global classes. The conversion classes decides the properties of conversion, like resolution, sampling time etc Use XMC_VADC_CHANNEL_CONV_t for this enumeration.
Defines the criteria for event generation by the channel. Use XMC_VADC_CHANNEL_EVGEN_t for this enumeration.
Defines the reference voltage selection for conversion. Use XMC_VADC_CHANNEL_REF_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_CHANNEL_REF_INTREF | Internal VARef |
XMC_VADC_CHANNEL_REF_ALT_CH0 | External voltage available on Channel-0 of the perticular group |
enum XMC_VADC_CONVMODE_t |
Defines the conversion mode. It defines the resolution of conversion. Use XMC_VADC_CONVMODE_t for this enumeration.
enum XMC_VADC_DMM_t |
Defines the conversion result handling mode. Use XMC_VADC_DMM_t for this enumeration.
Defines the output of a fast compare mode. Use XMC_VADC_FAST_COMPARE_t for this enumeration.
Defines the external gating input selection possibilities, to gate the conversion requests. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_GATE_INPUT_SELECT_t for this enumeration.
enum XMC_VADC_GATEMODE_t |
Defines the condition for gating the conversion requests. It can be used to set the ENGT field of ASMR/BSMR/QMR register respectively for auto_scan/background_scan/queue request sources. Use XMC_VADC_GATEMODE_t for this enumeration.
Defines the event which can lead to a global service request assertion. Use XMC_VADC_GLOBAL_EVENT_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GLOBAL_EVENT_BKGNDSOURCE | Background scan request source event |
XMC_VADC_GLOBAL_EVENT_RESULT | Global result event |
Selection of the reference voltage that is required for conversions (VREF).
Defines the request source arbiter behavior. Use XMC_VADC_GROUP_ARBMODE_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GROUP_ARBMODE_ALWAYS | Arbiter runs all the time |
XMC_VADC_GROUP_ARBMODE_ONDEMAND | Arbiter runs only if a conversion request is asserted by any of the request sources |
Defines the various modes for the boundary flag. Use XMC_VADC_GROUP_BOUNDARY_FLAG_MODE_t for this enumeration.
Defines the reference to sample time and conversion mode settings. Use XMC_VADC_GROUP_CONV_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GROUP_CONV_STD | Settings pertaining to channels directly attached to VADC module |
XMC_VADC_GROUP_CONV_EMUX | Settings pertaining to channels connected to VADC via EMUX |
Defines the EMUX channel selection encoding scheme. Use XMC_VADC_GROUP_EMUXCODE_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GROUP_EMUXCODE_BINARY | A linearly incrementing code serves are MUX-SEL |
XMC_VADC_GROUP_EMUXCODE_GRAY | The MUX-SEL is gray encoded |
Defines the EMUX mode of operation. Use XMC_VADC_GROUP_EMUXMODE_t for this enumeration.
Defines the group indices. Use XMC_VADC_GROUP_INDEX_t for this enumeration.
enum XMC_VADC_GROUP_IRQ_t |
Defines the service request set used. Use XMC_VADC_GROUP_IRQ_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GROUP_IRQ_KERNEL | Refers to Group specific service request |
XMC_VADC_GROUP_IRQ_SHARED | Refers to Module wide service request |
Defines the power modes of a VADC Group. Use XMC_VADC_GROUP_POWERMODE_t for this enumeration.
Defines the request source arbitration priority. Use XMC_VADC_GROUP_RS_PRIORITY_t for this enumeration.
Defines the status of a VADC group (also known as kernel). Use XMC_VADC_GROUP_STATE_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_GROUP_STATE_IDLE | Idle and can convert if requested |
XMC_VADC_GROUP_STATE_BUSY | Busy with an ongoing conversion |
Defines the alignment of the converted result. Use XMC_VADC_RESULT_ALIGN_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_RESULT_ALIGN_LEFT | Always align result to left |
XMC_VADC_RESULT_ALIGN_RIGHT | Always align result to right |
enum XMC_VADC_SCAN_LOAD_t |
Defines the behavior of load event for the scan request source. Use XMC_VADC_SCAN_LOAD_t for this enumeration.
enum XMC_VADC_SCAN_TYPE_t |
Defines the type of scan request source to be used. It can choose between auto scan and background scan request source methods. Use XMC_VADC_SCAN_TYPE_t for this enumeration.
enum XMC_VADC_SR_t |
Defines the various service requests lines. Each group can raise up to 4 service requests independently. While all groups together have the possibility of raising 4 module wide service requests. Use XMC_VADC_SR_t for this enumeration.
enum XMC_VADC_STARTMODE_t |
Defines the mode of operation of a channel, when an ongoing conversion gets interrupted in between. Use XMC_VADC_STARTMODE_t for this enumeration.
enum XMC_VADC_STATUS_t |
Defines the return status after execution of VADC specific API's. Use XMC_VADC_STATUS_t for this enumeration.
Enumerator | |
---|---|
XMC_VADC_STATUS_SUCCESS | Returned when the API has been able to fulfill the callers request |
XMC_VADC_STATUS_ERROR | Returned when the API cannot fulfill the request |
Defines the edge sensitivity of the trigger signal which can assert a conversion. Use XMC_VADC_TRIGGER_EDGE_t for this enumeration.
Defines the external trigger input selection possibilities, to assert a conversion. Refer the VADC interconnects section of the reference manual for details of peripherals which can be used. Also refer xmc_vadc_map.h file for detailed definitions of the peripherals which can take the control of these enumeration items. Use XMC_VADC_TRIGGER_INPUT_SELECT_t for this enumeration.
void XMC_VADC_GLOBAL_BackgndAddMultipleChannels | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | grp_num, | ||
const uint32_t | ch_mask | ||
) |
global_ptr | Pointer to the VADC module |
grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan |
ch_mask | Mask word indicating channels which form part of scan conversion sequence Bit location 0/1/2/3/4/5/6/7 represents channels-0/1/2/3/4/5/6/7 respectively. To Add the channel to the scan sequence enable the respective bit. Passing a 0x0 will clear all the previously selected channels Range: [0x0 to 0xFF] |
void XMC_VADC_GLOBAL_BackgndRemoveMultipleChannels | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | grp_num, | ||
const uint32_t | ch_mask | ||
) |
global_ptr | Pointer to the VADC module |
grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan |
ch_mask | Mask word indicating channels which form part of scan conversion sequence Bit location 0/1/2/3/4/5/6/7 represents channels-0/1/2/3/4/5/6/7 respectively. To Add the channel to the scan sequence enable the respective bit. Passing a 0x0 will clear all the previously selected channels Range: [0x0 to 0xFF] |
void XMC_VADC_GLOBAL_BackgroundAbortSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundAddChannelToSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | grp_num, | ||
const uint32_t | ch_num | ||
) |
global_ptr | Pointer to the VADC module |
grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan Request source |
ch_num | The unprioritized channel meant to be added to the scan sequence Range: [0x0 to 0x7] |
void XMC_VADC_GLOBAL_BackgroundClearReqSrcEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundDisableContinuousMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundDisableEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundDisableExternalTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundEnableContinuousMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundEnableEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundEnableExternalTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
uint32_t XMC_VADC_GLOBAL_BackgroundGetNumChannelsPending | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
bool XMC_VADC_GLOBAL_BackgroundGetReqSrcEventStatus | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_BACKGROUND_CONFIG_t * | config | ||
) |
global_ptr | Pointer to the VADC module |
config | Pointer to initialization data structure |
bool XMC_VADC_GLOBAL_BackgroundIsChannelPending | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | grp_num, | ||
const uint32_t | ch_num | ||
) |
global_ptr | Pointer to the VADC module |
grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan RS |
ch_num | The channel being audited for completion of conversion Range: [0x0 to 0x7] |
void XMC_VADC_GLOBAL_BackgroundRemoveChannelFromSequence | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | grp_num, | ||
const uint32_t | ch_num | ||
) |
global_ptr | Pointer to the VADC module |
grp_num | ID of the VADC group whose unprioritized channels have been assigned to background scan Request source |
ch_num | The unprioritized channel meant to be added to the scan sequence Range: [0x0 to 0x7] |
void XMC_VADC_GLOBAL_BackgroundSelectGating | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | input_num | ||
) |
global_ptr | Pointer to the VADC module |
input_num | Module input signal meant to be selected as gating input Accepts enum XMC_VADC_GATE_INPUT_SELECT_t |
void XMC_VADC_GLOBAL_BackgroundSelectTrigger | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | input_num | ||
) |
global_ptr | Pointer to the VADC module |
input_num | Choice of the input earmarked as a trigger line Accepts enum XMC_VADC_TRIGGER_INPUT_SELECT_t |
void XMC_VADC_GLOBAL_BackgroundSelectTriggerEdge | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_TRIGGER_EDGE_t | trigger_edge | ||
) |
global_ptr | Pointer to the VADC module |
trigger_edge | Select the trigger edge |
void XMC_VADC_GLOBAL_BackgroundSetGatingMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
XMC_VADC_GATEMODE_t | mode_sel | ||
) |
global_ptr | Pointer to the VADC module |
mode_sel | Select how the gating is applied to the background scan request source |
Details of function
Selects the gating mode of background request source.
Passage of the trigger input to the request source can be controlled via a gating signal. This API determines how the gating signal behaves, either active low or active high. If gating signal needs to ignored XMC_VADC_GATEMODE_IGNORE should be used as the mode_sel. A call to this API would configure the register bit field BRSMR.ENGT.
void XMC_VADC_GLOBAL_BackgroundSetReqSrcEventInterruptNode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
XMC_VADC_SR_t | sr | ||
) |
global_ptr | Constant pointer to the VADC module |
sr | The service request to which the global request source event is connected. Refer XMC_VADC_SR_t enum |
void XMC_VADC_GLOBAL_BackgroundTriggerConversion | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BackgroundTriggerReqSrcEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Pointer to the VADC module |
void XMC_VADC_GLOBAL_BindGroupToEMux | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | emuxif, | ||
const uint32_t | group | ||
) |
global_ptr | Constant pointer to the VADC module |
emuxif | The EMUX interface Range[0x0 - 0x1] |
group | The VADC group which must be bound to the desired emux |
void XMC_VADC_GLOBAL_ClearEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | event_type | ||
) |
global_ptr | Constant pointer to the VADC module |
event_type | Event that must be acknowledged Use the enum XMC_VADC_GLOBAL_EVENT_t to create a mask to be used with this argument |
void XMC_VADC_GLOBAL_ClockInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_GLOBAL_CLOCK_t * | config | ||
) |
global_ptr | Constant pointer to the VADC module. |
config | Pointer to the data structure containing clock configuration data |
void XMC_VADC_GLOBAL_DisableModule | ( | void | ) |
None |
void XMC_VADC_GLOBAL_DisableModuleClock | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_DisablePostCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
uint32_t | group_number | ||
) |
global_ptr | Constant pointer to the VADC module |
group_number | group number whose post calibration feature is to be disabled. Range[0x0 to 0x3] Accepts the enum XMC_VADC_GROUP_INDEX_t |
void XMC_VADC_GLOBAL_DisableSleepMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_DisableStartupCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_EnableModule | ( | void | ) |
None |
void XMC_VADC_GLOBAL_EnableModuleClock | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_EnablePostCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
uint32_t | group_number | ||
) |
global_ptr | Constant pointer to the VADC module |
group_number | group number whose post calibration feature is to be enabled. Range[0x0 to 0x3] Accepts the enum XMC_VADC_GROUP_INDEX_t |
void XMC_VADC_GLOBAL_EnableSleepMode | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
XMC_VADC_FAST_COMPARE_t XMC_VADC_GLOBAL_GetCompareResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module |
uint32_t XMC_VADC_GLOBAL_GetDetailedResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
XMC_VADC_RESULT_SIZE_t XMC_VADC_GLOBAL_GetResult | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_Init | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_GLOBAL_CONFIG_t * | config | ||
) |
global_ptr | Constant pointer to the VADC module. |
config | Pointer to initialization data structure |
void XMC_VADC_GLOBAL_InputClassInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_GLOBAL_CLASS_t | config, | ||
const XMC_VADC_GROUP_CONV_t | conv_type, | ||
const uint32_t | set_num | ||
) |
global_ptr | Constant pointer to the VADC module. |
config | Conversion class parameter structure |
conv_type | configure the input call for either standard conversion or EMUX related conversion. |
set_num | Conversion class set Range: [0x0, 0x1] |
void XMC_VADC_GLOBAL_ResultInit | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_RESULT_CONFIG_t * | config | ||
) |
global_ptr | Constant pointer to the VADC global module |
config | Pointer to result configuration data structure |
void XMC_VADC_GLOBAL_SetBoundaries | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | boundary0, | ||
const uint32_t | boundary1 | ||
) |
global_ptr | Constant pointer to the VADC module. |
boundary0 | Boundary-0 Value Range[0 - 4095] |
boundary1 | Boundary-1 Value Range[0 - 4095] |
void XMC_VADC_GLOBAL_SetCompareValue | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_RESULT_SIZE_t | compare_val | ||
) |
global_ptr | Constant pointer to the VADC module |
compare_val | Compare value which the result of a conversion will be compared against. Range[0x0 - 0X0FFF] |
void XMC_VADC_GLOBAL_SetIndividualBoundary | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const XMC_VADC_CHANNEL_BOUNDARY_t | selection, | ||
const uint16_t | boundary_value | ||
) |
global_ptr | Constant pointer to the VADC module. |
selection | The boundary value selected for boundary_value. |
boundary_value | Boundary Value Range[0 - 4095] |
void XMC_VADC_GLOBAL_SetResultEventInterruptNode | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
XMC_VADC_SR_t | sr | ||
) |
global_ptr | Constant pointer to the VADC module |
sr | The service request to which the global result event is connected. Refer XMC_VADC_SR_t enum |
void XMC_VADC_GLOBAL_SHS_DisableSigmaDeltaLoop | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
XMC_VADC_SHS_LOOP_CH_t | loop_select | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
loop_select | The delta sigma loop number for which the configurations applies |
void XMC_VADC_GLOBAL_SHS_EnableSigmaDeltaLoop | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
XMC_VADC_SHS_LOOP_CH_t | loop_select | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
loop_select | The delta sigma loop number for which the configurations applies |
void XMC_VADC_GLOBAL_SHS_Init | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
const XMC_VADC_GLOBAL_SHS_CONFIG_t * | config | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
config | Struct consisting of various SHS related configurations. |
bool XMC_VADC_GLOBAL_SHS_IsConverterReady | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr | ) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
void XMC_VADC_GLOBAL_SHS_SetAnalogReference | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
const XMC_VADC_GLOBAL_SHS_AREF_t | aref | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
aref | Analog reference used for conversions. Refer XMC_VADC_GLOBAL_SHS_AREF_t enum |
void XMC_VADC_GLOBAL_SHS_SetClockDivider | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
uint8_t | divs_value | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
divs_value | The clock divider value that is possible Range:[0x0 to 0xF] |
void XMC_VADC_GLOBAL_SHS_SetGainFactor | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
uint8_t | gain_value, | ||
XMC_VADC_GROUP_INDEX_t | group_num, | ||
uint8_t | ch_num | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
gain_value | gain value possible Range:[0x0 to 0x3] |
group_num | The Group number for which the configurations applies |
ch_num | The channel number for which the gain has to be configured |
void XMC_VADC_GLOBAL_SHS_SetSigmaDeltaLoop | ( | XMC_VADC_GLOBAL_SHS_t *const | shs_ptr, |
XMC_VADC_GROUP_INDEX_t | group_num, | ||
XMC_VADC_SHS_LOOP_CH_t | loop_select, | ||
uint8_t | ch_num | ||
) |
shs_ptr | Constant pointer to the VADC Sample and hold module |
group_num | The Group number for which the configurations applies |
loop_select | The delta sigma loop number for which the configurations applies |
ch_num | Channel number for which the configurations applies |
void XMC_VADC_GLOBAL_StartupCalibration | ( | XMC_VADC_GLOBAL_t *const | global_ptr | ) |
global_ptr | Constant pointer to the VADC module. |
void XMC_VADC_GLOBAL_TriggerEvent | ( | XMC_VADC_GLOBAL_t *const | global_ptr, |
const uint32_t | event_type | ||
) |
global_ptr | Constant pointer to the VADC module |
event_type | Desired event that must be manually asserted Use the enum XMC_VADC_GLOBAL_EVENT_t to create a mask to be used with this argument |
void XMC_VADC_GROUP_AddResultToFifo | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Register which is required to be a part of results FIFO Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_BackgroundDisableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group which may receive a conversion request from background request source |
void XMC_VADC_GROUP_BackgroundEnableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group which may receive a conversion request from background request source |
void XMC_VADC_GROUP_ChannelClearEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose channel event is to be acknowledged Range: [0x0 to 0x7] |
uint32_t XMC_VADC_GROUP_ChannelGetAssertedEvents | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
XMC_VADC_CHANNEL_CONV_t XMC_VADC_GROUP_ChannelGetInputClass | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose result alignment is to be returned Range: [0x0 to 0x7] |
XMC_VADC_RESULT_ALIGN_t XMC_VADC_GROUP_ChannelGetResultAlignment | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose result alignment is to be returned Range: [0x0 to 0x7] |
uint8_t XMC_VADC_GROUP_ChannelGetResultRegister | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose associated result register is to be found Range: [0x0 to 0x7] |
void XMC_VADC_GROUP_ChannelInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const XMC_VADC_CHANNEL_CONFIG_t * | config | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | The channel being initialized Range: [0x0 to 0x7] |
config | Pointer to initialization data |
bool XMC_VADC_GROUP_ChannelIsResultOutOfBounds | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose input was converted Range: [0x0 to 0x7] |
void XMC_VADC_GROUP_ChannelSetBoundarySelection | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
XMC_VADC_BOUNDARY_SELECT_t | boundary_sel, | ||
XMC_VADC_CHANNEL_BOUNDARY_t | selection | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose channel event is being configured Range: [0x0 to 0x7] |
boundary_sel | Select the upper/lower boundary configuration . |
selection | The boundary value selected for boundary_sel. |
void XMC_VADC_GROUP_ChannelSetEventInterruptNode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const XMC_VADC_SR_t | sr | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose channel event is to be connected to a service request line Range: [0x0 to 0x7] |
sr | The service request line to which the channel event is to be connected |
void XMC_VADC_GROUP_ChannelSetIclass | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const XMC_VADC_CHANNEL_CONV_t | conversion_class | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose conversion class is to be configured Range: [0x0 to 0x7] |
conversion_class | conversion property to be associated with this channel |
void XMC_VADC_GROUP_ChannelSetInputReference | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const XMC_VADC_CHANNEL_REF_t | ref | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose input is to be converted Range: [0x0 to 0x7] |
ref | Reference voltage |
void XMC_VADC_GROUP_ChannelSetResultRegister | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const uint32_t | result_reg_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose i/p is to be converted Range: [0x0 to 0x7] |
result_reg_num | Result Register associated with this channel |
void XMC_VADC_GROUP_ChannelTriggerEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose channel event is to be asserted Range: [0x0 to 0x7] |
void XMC_VADC_GROUP_ChannelTriggerEventGenCriteria | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num, | ||
const XMC_VADC_CHANNEL_EVGEN_t | criteria | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | Channel whose channel event is being configured Range: [0x0 to 0x7] |
criteria | The condition under which the channel may assert its channel event |
void XMC_VADC_GROUP_CheckSlaveReadiness | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | slave_group | ||
) |
group_ptr | Pointer to the master VADC Group |
slave_group | The slave VADC Group number Range: [0x0 to 0x3] |
void XMC_VADC_GROUP_ClearResultEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which the result event is being acknowledged Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_DisableChannelSyncRequest | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Pointer to the master VADC Group |
ch_num | Channel whose conversion triggers conversion in slave groups |
void XMC_VADC_GROUP_DisableResultEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which event generation is to be disabled Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_EnableChannelSyncRequest | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the master VADC Group |
ch_num | Channel whose conversion triggers conversion in slave groups |
void XMC_VADC_GROUP_EnableResultEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which event generation is to be enabled Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_ExternalMuxControlInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_GROUP_EMUXCFG_t | emux_cfg | ||
) |
group_ptr | Constant pointer to the VADC group |
emux_cfg | EMUX configuration structure |
uint32_t XMC_VADC_GROUP_GetAlias | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
uint32_t XMC_VADC_GROUP_GetAssertedResultEvents | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
uint8_t XMC_VADC_GROUP_GetChannelAlias | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | alias_ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
alias_ch_num | This is the alias channel (Ch-0 or Ch-1) Range:[0x0, 0x1] |
uint32_t XMC_VADC_GROUP_GetDetailedResult | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register from which the result of conversion is to be read out Range: [0x0 to 0xF] |
XMC_VADC_FAST_COMPARE_t XMC_VADC_GROUP_GetFastCompareResult | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which the compare value is being set Range: [0x0 to 0xF] |
XMC_VADC_GROUP_CLASS_t XMC_VADC_GROUP_GetInputClass | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_CHANNEL_CONV_t | conv_class | ||
) |
group_ptr | Constant pointer to the VADC group |
conv_class | conversion property to be extracted |
int32_t XMC_VADC_GROUP_GetPowerMode | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC Group. |
XMC_VADC_RESULT_SIZE_t XMC_VADC_GROUP_GetResult | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register from which the result of conversion is to be read out Range: [0x0 to 0xF] |
uint32_t XMC_VADC_GROUP_GetResultFifoHead | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register which forms a part of fifo Range: [0x0 to 0xF] |
uint32_t XMC_VADC_GROUP_GetResultFifoTail | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register which forms a part of FIFO Range: [0x0 to 0xF] |
uint32_t XMC_VADC_GROUP_GetSyncReadySignal | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant Pointer to the VADC Group |
void XMC_VADC_GROUP_IgnoreSlaveReadiness | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | slave_group | ||
) |
group_ptr | Constant Pointer to the master VADC Group |
slave_group | The slave VADC Group number |
void XMC_VADC_GROUP_Init | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_GROUP_CONFIG_t * | config | ||
) |
group_ptr | Constant pointer to the VADC group. |
config | Pointer to the initialization data structure |
void XMC_VADC_GROUP_InputClassInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_GROUP_CLASS_t | config, | ||
const XMC_VADC_GROUP_CONV_t | conv_type, | ||
const uint32_t | set_num | ||
) |
group_ptr | Constant pointer to the VADC group. |
config | group related conversion class parameter structure |
conv_type | Use direct channels or EMUX channels. Refer XMC_VADC_GROUP_CONV_t enum |
set_num | Conversion class set Range[0x0, 0x1] |
XMC_VADC_GROUP_STATE_t XMC_VADC_GROUP_IsConverterBusy | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group. |
bool XMC_VADC_GROUP_IsResultRegisterFifoHead | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register in question Range: [0x0 to 0xF] |
bool XMC_VADC_GROUP_IsResultRegisterInFifo | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register number Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_QueueAbortSequence | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueClearReqSrcEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueDisableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueDisableExternalTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueEnableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueEnableExternalTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueFlushEntries | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
int32_t XMC_VADC_GROUP_QueueGetInterruptedChannel | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
uint32_t XMC_VADC_GROUP_QueueGetLength | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
int32_t XMC_VADC_GROUP_QueueGetNextChannel | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
bool XMC_VADC_GROUP_QueueGetReqSrcEventStatus | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_QUEUE_CONFIG_t * | config | ||
) |
group_ptr | Pointer to the VADC group |
config | Pointer to initialization data structure |
void XMC_VADC_GROUP_QueueInsertChannel | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_QUEUE_ENTRY_t | entry | ||
) |
group_ptr | Constant pointer to the VADC group |
entry | Details of the node being added |
bool XMC_VADC_GROUP_QueueIsArbitrationSlotEnabled | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueRemoveChannel | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueSelectGating | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_GATE_INPUT_SELECT_t | input_num | ||
) |
group_ptr | Constant pointer to the VADC group |
input_num | Choice of the input earmarked as the gating line |
void XMC_VADC_GROUP_QueueSelectTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_TRIGGER_INPUT_SELECT_t | input_num | ||
) |
group_ptr | Constant pointer to the VADC group |
input_num | Choice of the input earmarked as a trigger line |
void XMC_VADC_GROUP_QueueSelectTriggerEdge | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_TRIGGER_EDGE_t | trigger_edge | ||
) |
group_ptr | Constant pointer to the VADC group |
trigger_edge | Choice of the trigger edge |
void XMC_VADC_GROUP_QueueSetGatingMode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
XMC_VADC_GATEMODE_t | mode_sel | ||
) |
group_ptr | Constant pointer to the VADC group |
mode_sel | Select how the gating is applied to the queue request source |
Details of function
Selects the gating mode of queue request source.
Passage of the trigger input to the request source can be controlled via a gating signal. This API determines how the gating signal behaves, either active low or active high. If gating signal needs to ignored XMC_VADC_GATEMODE_IGNORE should be used as the mode_sel. A call to this API would configure the register bit field GxQMR0.ENGT.
void XMC_VADC_GROUP_QueueSetReqSrcEventInterruptNode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_SR_t | sr | ||
) |
group_ptr | Constant pointer to the VADC group |
sr | The service request line (Common SR lines, Group specific SR lines) |
void XMC_VADC_GROUP_QueueTriggerConversion | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_QueueTriggerReqSrcEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ResultInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg_num, | ||
const XMC_VADC_RESULT_CONFIG_t * | config | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg_num | Result register which is intended to be initialized Range: [0x0 to 0xF] |
config | Pointer to initialization data |
void XMC_VADC_GROUP_ScanAddChannelToSequence | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | The channel meant to be added to scan sequence Range: [0x0 to 0x7] |
void XMC_VADC_GROUP_ScanAddMultipleChannels | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_mask | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_mask | Mask word indicating channels which form part of scan conversion sequence Bit location 0/1/2/3/4/5/6/7 represents channels-0/1/2/3/4/5/6/7 respectively. To Add the channel to the scan sequence enable the respective bit. Passing a 0x0 will clear all the selected channels Range: [0x0 to 0xFF] |
void XMC_VADC_GROUP_ScanClearReqSrcEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanDisableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanDisableContinuousMode | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanDisableEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanDisableExternalTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanEnableArbitrationSlot | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanEnableContinuousMode | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanEnableEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanEnableExternalTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
uint32_t XMC_VADC_GROUP_ScanGetNumChannelsPending | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
bool XMC_VADC_GROUP_ScanGetReqSrcEventStatus | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanInit | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_SCAN_CONFIG_t * | config | ||
) |
group_ptr | Pointer to the VADC group |
config | Pointer to Scan configuration |
bool XMC_VADC_GROUP_ScanIsArbitrationSlotEnabled | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
bool XMC_VADC_GROUP_ScanIsChannelPending | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
ch_num | The channel being audited for completion of conversion Range: [0x0 to 0x7] |
void XMC_VADC_GROUP_ScanRemoveChannel | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | channel_num | ||
) |
group_ptr | Constant pointer to the VADC group |
channel_num | channel number to be removed from the scan sequence. |
void XMC_VADC_GROUP_ScanSelectGating | ( | XMC_VADC_GROUP_t *const | group_ptr, |
XMC_VADC_GATE_INPUT_SELECT_t | gating_input | ||
) |
group_ptr | Constant pointer to the VADC group |
gating_input | Module input signal meant to be selected as gating input |
void XMC_VADC_GROUP_ScanSelectTrigger | ( | XMC_VADC_GROUP_t *const | group_ptr, |
XMC_VADC_TRIGGER_INPUT_SELECT_t | trigger_input | ||
) |
group_ptr | Constant pointer to the VADC group |
trigger_input | Choice of the input earmarked as a trigger line |
void XMC_VADC_GROUP_ScanSelectTriggerEdge | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_TRIGGER_EDGE_t | trigger_edge | ||
) |
group_ptr | Constant pointer to the VADC group |
trigger_edge | Trigger edge selection |
void XMC_VADC_GROUP_ScanSequenceAbort | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanSetGatingMode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
XMC_VADC_GATEMODE_t | mode_sel | ||
) |
group_ptr | Constant pointer to the VADC group |
mode_sel | Select how the gating is applied to the scan request source |
void XMC_VADC_GROUP_ScanSetReqSrcEventInterruptNode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_SR_t | sr | ||
) |
group_ptr | Constant pointer to the VADC group |
sr | Service Request Id |
void XMC_VADC_GROUP_ScanTriggerConversion | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_ScanTriggerReqSrcEvent | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group |
void XMC_VADC_GROUP_SetBoundaries | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | boundary0, | ||
const uint32_t | boundary1 | ||
) |
group_ptr | Constant pointer to the VADC group whose global boundary registers are to be programmed |
boundary0 | Boundary-0 Value Range: [0x0 - 0x0FFF] |
boundary1 | Boundary-1 Value Range: [0x0 - 0x0FFF] |
void XMC_VADC_GROUP_SetBoundaryEventInterruptNode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint8_t | boundary_flag_num, | ||
const XMC_VADC_BOUNDARY_NODE_t | node | ||
) |
group_ptr | Constant pointer to the VADC group |
boundary_flag_num | The Boundary flag for which the interrupt node needs to be configured. Range: [0x0 to 0x3] |
node | Service Request node Id |
void XMC_VADC_GROUP_SetChannelAlias | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | src_ch_num, | ||
const uint32_t | alias_ch_num | ||
) |
group_ptr | Constant pointer to the VADC group |
src_ch_num | Channel which will be converted by alias_ch_num, when called by the request source. Range:[0x0 to 0x7] |
alias_ch_num | This is the alias channel (Ch-0 or Ch-1) Range:[0x0, 0x1] |
void XMC_VADC_GROUP_SetIndividualBoundary | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_CHANNEL_BOUNDARY_t | selection, | ||
const uint16_t | boundary_value | ||
) |
group_ptr | Constant pointer to the VADC group |
selection | The boundary value selected for boundary_value. |
boundary_value | Select the boundary value. |
void XMC_VADC_GROUP_SetPowerMode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const XMC_VADC_GROUP_POWERMODE_t | power_mode | ||
) |
group_ptr | Constant pointer to the VADC Group. |
power_mode | Desired power mode |
void XMC_VADC_GROUP_SetResultFastCompareValue | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg, | ||
const XMC_VADC_RESULT_SIZE_t | compare_val | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which the compare value is being set Range: [0x0 to 0xF] |
compare_val | The compare value itself Range: [0x0 to 0xFFF] |
void XMC_VADC_GROUP_SetResultInterruptNode | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg, | ||
const XMC_VADC_SR_t | sr | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which the result event is being asserted Range: [0x0 to 0xF] |
sr | The SR line to which the result event must be connected |
void XMC_VADC_GROUP_SetResultSubtractionValue | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint16_t | subtraction_val | ||
) |
group_ptr | Constant pointer to the VADC group |
subtraction_val | 12 bit subtraction value Range: [0x0 to 0xFFF] |
void XMC_VADC_GROUP_SetSyncMaster | ( | XMC_VADC_GROUP_t *const | group_ptr | ) |
group_ptr | Constant pointer to the VADC group. |
void XMC_VADC_GROUP_SetSyncReadySignal | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | mask | ||
) |
group_ptr | Constant Pointer to the VADC Group |
eval_mask | mask to configure the eval bits Use XMC_VADC_SYNCTR_EVAL_t to create the mask. |
void XMC_VADC_GROUP_SetSyncSlave | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | master_grp, | ||
uint32_t | slave_group | ||
) |
group_ptr | Constant pointer to the VADC Group which must be set as a slave |
master_grp | The master group number Range: [0x0 - 0x3] |
slave_group | The slave group number Range: [0x0 - 0x3] |
void XMC_VADC_GROUP_SetSyncSlaveReadySignal | ( | XMC_VADC_GROUP_t *const | group_ptr, |
uint32_t | eval_waiting_group, | ||
uint32_t | eval_origin_group | ||
) |
group_ptr | Constant Pointer to the VADC Group waiting for ready signal |
eval_waiting_group | The VADC Group which expects a ready signal to start it's conversion. |
eval_origin_group | The VADC Group from which the eval_waiting_group will expect a ready signal |
void XMC_VADC_GROUP_TriggerResultEvent | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | res_reg | ||
) |
group_ptr | Constant pointer to the VADC group |
res_reg | Result Register for which the result event is being asserted Range: [0x0 to 0xF] |
void XMC_VADC_GROUP_TriggerServiceRequest | ( | XMC_VADC_GROUP_t *const | group_ptr, |
const uint32_t | sr_num, | ||
const XMC_VADC_GROUP_IRQ_t | type | ||
) |
group_ptr | Constant pointer to the VADC group |
sr_num | The service request number (0 through 3) |
type | IRQ type (Kernel specific interrupt vs Module wide shared interrupt ) |