|
| bool | SDL_ADC_isBaseValid (uint32_t base) |
| | Checks that that ADC Base address is valid.
|
| |
| void | SDL_ADC_setPrescaler (uint32_t base, SDL_ADC_ClkPrescale clkPrescale) |
| | Configures the analog-to-digital converter module prescaler.
|
| |
| void | SDL_ADC_setInterruptPulseMode (uint32_t base, SDL_ADC_PulseMode pulseMode) |
| | Sets the timing of the end-of-conversion pulse. This function configures the end-of-conversion (EOC) pulse generated by ADC.
|
| |
| void | SDL_ADC_enableConverter (uint32_t base) |
| | Powers down the analog-to-digital converter module. This function powers down the analog circuitry inside the analog core.
|
| |
| void | SDL_ADC_enableInterrupt (uint32_t base, SDL_ADC_IntNumber adcIntNum) |
| | Enables an ADC interrupt source. This function enables the indicated ADC interrupt source. Only the sources that are enabled can be reflected to the processor interrupt. Disabled sources have no effect on the processor.
|
| |
| void | SDL_ADC_disableContinuousMode (uint32_t base, SDL_ADC_IntNumber adcIntNum) |
| | Disables continuous mode for an ADC interrupt. This function disables continuous mode for the specified ADC interrupt.
|
| |
| void | SDL_ADC_setInterruptSource (uint32_t base, SDL_ADC_IntNumber adcIntNum, uint16_t intTrigger) |
| | Sets the source EOC for an analog-to-digital converter interrupt. This function sets which conversion is the source of an ADC interrupt.
|
| |
| void | SDL_ADC_setInterruptSOCTrigger (uint32_t base, SDL_ADC_SOCNumber socNumber, uint32_t trigger) |
| | Configures the interrupt SOC trigger of an SOC. This function configures the interrupt start-of-conversion trigger in the ADC module.
|
| |
| void | SDL_ADC_configOSDetectMode (uint32_t base, SDL_ADC_OSDetectMode modeVal) |
| | Configures Open/Shorts Detection Circuit Mode. This function configures the open/shorts detection circuit mode of the ADC.
|
| |
| void | SDL_ADC_clearInterruptStatus (uint32_t base, SDL_ADC_IntNumber adcIntNum) |
| | Clears ADC interrupt sources. This function clears the specified ADC interrupt sources so that they no longer assert. If not in continuous mode, this function must be called before any further interrupt pulses may occur.
|
| |
| void | SDL_ADC_forceSOC (uint32_t base, SDL_ADC_SOCNumber socNumber) |
| | Forces a SOC flag to a 1 in the analog-to-digital converter. This function forces the SOC flag associated with the SOC specified by socNumber. This initiates a conversion once that SOC is given priority. This software trigger can be used whether or not the SOC has been configured to accept some other specific trigger.
|
| |
| bool | SDL_ADC_getInterruptStatus (uint32_t base, SDL_ADC_IntNumber adcIntNum) |
| | Gets the current ADC interrupt status. This function returns the interrupt status for the analog-to-digital converter.
|
| |
| void | SDL_ADC_setupPPB (uint32_t base, uint32_t ppbNumber, SDL_ADC_SOCNumber socNumber) |
| | Configures a post-processing block (PPB) in the ADC. This function associates a post-processing block with a SOC.
|
| |
| void | SDL_ADC_setPPBCountLimit (uint32_t base, uint32_t ppbNumber, uint16_t limit) |
| | Configures PPB count limit. This function configures the PPB oversampling count limit which defines the number of ADC conversions to accumulate before partial sum is automatically loaded to the sum registes.
|
| |
| void | SDL_ADC_selectPPBSyncInput (uint32_t base, uint32_t ppbNumber, uint16_t syncInput) |
| | Configures PPB sync input. This function configures desired sync event to transfer partial registers to final registers and reset the partial registers.
|
| |
| void | SDL_ADC_setupSOC (uint32_t base, SDL_ADC_SOCNumber socNumber, uint32_t trigger, SDL_ADC_Channel channel, uint32_t sampleWindow) |
| | Configures a start-of-conversion (SOC) in the ADC. This function configures a start-of-conversion (SOC) in the ADC module.
|
| |
| uint16_t | SDL_ADC_readResult (uint32_t resultBase, SDL_ADC_SOCNumber socNumber) |
| | Reads the conversion result. This function returns the conversion result that corresponds to the base address.
|
| |
| void | SDL_ADC_forceRepeaterTriggerSync (uint32_t base, SDL_ADC_RepeaterInst repInstance) |
| | Forces software sync for the trigger repeater block. This function forces the software sync for the trigger repeater block.
|
| |
| void | SDL_ADC_forcePPBSync (uint32_t base, uint32_t ppbNumber) |
| | Forces PPB software sync. This function forces the software sync for the desired PPB.
|
| |
| void | SDL_ADC_forceRepeaterTrigger (uint32_t base, SDL_ADC_RepeaterInst repInstance) |
| | Forces software trigger to ADC trigger repeater block. This function forces the selected ADC repeater block.
|
| |
| int32_t | SDL_ADC_readPPBSum (uint32_t resultBase, uint32_t ppbNumber) |
| | Reads the oversampled final sum from the PPB. This function returns the processed sum of results that corresponds to the base address and the PPB.
|
| |
| int32_t | SDL_ADC_init (const SDL_ADC_Config *adcConfig) |
| | Initialise ADC for the particular instance. User has to configure INLTrim and offsetTrim in the application itself before initializing the particular ADC instance and running the test.
|
| |
| int32_t | SDL_ADC_configInterrupt (const SDL_ADC_Config *adcConfig, uint16_t intTrigger) |
| | Configure interrupts for the particular ADC instance. This function performs the complete ADC interrupt setup:
|
| |
| int32_t | SDL_ADC_setMode (uint32_t base, SDL_ADC_Resolution resolution, SDL_ADC_SignalMode signalMode) |
| | Configures the analog-to-digital converter resolution and signal mode.
|
| |
| int32_t | SDL_ADC_configRepeater (uint32_t base, const SDL_ADC_RepeaterConfig *config) |
| | Configures the trigger repeater. This function configures ADC trigger repeater for repeater mode, trigger and sync along with count, phase delay and spread of triggers.
|
| |
| int32_t | SDL_ADC_runOpenShortTest (const SDL_ADC_Config *adcConfig, const SDL_ADC_ChannelOSTest *channelConfig, const SDL_ADC_OSTest *adcDetectcfg) |
| | Executes a sequence of ADC tests. This function performs multiple ADC scale tests(e.g., full, 7/12, 5/12 and zero scale) based on the list of mode and scale pairs provided by the user.
|
| |
| int32_t | SDL_ADC_configAccumulation (const SDL_ADC_Config *adcConfig, uint16_t accumulationCount, const SDL_ADC_RepeaterConfig *repConfig) |
| | Initializes the ADC repeater and PPB to accumulate results.
|
| |
|
| enum | SDL_ADC_ClkPrescale {
SDL_ADC_CLK_DIV_1_0 = 0U
, SDL_ADC_CLK_DIV_2_0 = 2U
, SDL_ADC_CLK_DIV_2_5 = 3U
, SDL_ADC_CLK_DIV_3_0 = 4U
,
SDL_ADC_CLK_DIV_3_5 = 5U
, SDL_ADC_CLK_DIV_4_0 = 6U
, SDL_ADC_CLK_DIV_4_5 = 7U
, SDL_ADC_CLK_DIV_5_0 = 8U
,
SDL_ADC_CLK_DIV_5_5 = 9U
, SDL_ADC_CLK_DIV_6_0 = 10U
, SDL_ADC_CLK_DIV_6_5 = 11U
, SDL_ADC_CLK_DIV_7_0 = 12U
,
SDL_ADC_CLK_DIV_7_5 = 13U
, SDL_ADC_CLK_DIV_8_0 = 14U
, SDL_ADC_CLK_DIV_8_5 = 15U
} |
| | ADC clock prescaler. More...
|
| |
| enum | SDL_ADC_Resolution { SDL_ADC_RESOLUTION_12BIT = 0x00U
, SDL_ADC_RESOLUTION_16BIT = 0x40U
} |
| | ADC Resolutions. More...
|
| |
| enum | SDL_ADC_SignalMode { SDL_ADC_MODE_SINGLE_ENDED = 0x00U
, SDL_ADC_MODE_DIFFERENTIAL = 0x80U
} |
| | ADC Signal Modes. More...
|
| |
| enum | SDL_ADC_PulseMode { SDL_ADC_PULSE_END_OF_ACQ_WIN = 0x00U
, SDL_ADC_PULSE_END_OF_CONV = 0x04U
} |
| | ADC Pulse Modes. More...
|
| |
| enum | SDL_ADC_IntNumber { SDL_ADC_INT_NUMBER1 = 0U
, SDL_ADC_INT_NUMBER2 = 1U
, SDL_ADC_INT_NUMBER3 = 2U
, SDL_ADC_INT_NUMBER4 = 3U
} |
| | ADC interrupt number. More...
|
| |
| enum | SDL_ADC_SOCNumber {
SDL_ADC_SOC_NUMBER0 = 0U
, SDL_ADC_SOC_NUMBER1 = 1U
, SDL_ADC_SOC_NUMBER2 = 2U
, SDL_ADC_SOC_NUMBER3 = 3U
,
SDL_ADC_SOC_NUMBER4 = 4U
, SDL_ADC_SOC_NUMBER5 = 5U
, SDL_ADC_SOC_NUMBER6 = 6U
, SDL_ADC_SOC_NUMBER7 = 7U
,
SDL_ADC_SOC_NUMBER8 = 8U
, SDL_ADC_SOC_NUMBER9 = 9U
, SDL_ADC_SOC_NUMBER10 = 10U
, SDL_ADC_SOC_NUMBER11 = 11U
,
SDL_ADC_SOC_NUMBER12 = 12U
, SDL_ADC_SOC_NUMBER13 = 13U
, SDL_ADC_SOC_NUMBER14 = 14U
, SDL_ADC_SOC_NUMBER15 = 15U
,
SDL_ADC_SOC_NUMBER16 = 16U
, SDL_ADC_SOC_NUMBER17 = 17U
, SDL_ADC_SOC_NUMBER18 = 18U
, SDL_ADC_SOC_NUMBER19 = 19U
,
SDL_ADC_SOC_NUMBER20 = 20U
, SDL_ADC_SOC_NUMBER21 = 21U
, SDL_ADC_SOC_NUMBER22 = 22U
, SDL_ADC_SOC_NUMBER23 = 23U
,
SDL_ADC_SOC_NUMBER24 = 24U
, SDL_ADC_SOC_NUMBER25 = 25U
, SDL_ADC_SOC_NUMBER26 = 26U
, SDL_ADC_SOC_NUMBER27 = 27U
,
SDL_ADC_SOC_NUMBER28 = 28U
, SDL_ADC_SOC_NUMBER29 = 29U
, SDL_ADC_SOC_NUMBER30 = 30U
, SDL_ADC_SOC_NUMBER31 = 31U
} |
| | ADC SOC number. More...
|
| |
| enum | SDL_ADC_Channel {
SDL_ADC_CH_ADCIN0 = 0U
, SDL_ADC_CH_ADCIN1 = 1U
, SDL_ADC_CH_ADCIN2 = 2U
, SDL_ADC_CH_ADCIN3 = 3U
,
SDL_ADC_CH_ADCIN4 = 4U
, SDL_ADC_CH_ADCIN5 = 5U
, SDL_ADC_CH_ADCIN6 = 6U
, SDL_ADC_CH_ADCIN7 = 7U
,
SDL_ADC_CH_ADCIN8 = 8U
, SDL_ADC_CH_ADCIN9 = 9U
, SDL_ADC_CH_ADCIN10 = 10U
, SDL_ADC_CH_ADCIN11 = 11U
,
SDL_ADC_CH_ADCIN12 = 12U
, SDL_ADC_CH_ADCIN13 = 13U
, SDL_ADC_CH_ADCIN14 = 14U
, SDL_ADC_CH_ADCIN15 = 15U
,
SDL_ADC_CH_ADCIN16 = 16U
, SDL_ADC_CH_ADCIN17 = 17U
, SDL_ADC_CH_ADCIN18 = 18U
, SDL_ADC_CH_ADCIN19 = 19U
,
SDL_ADC_CH_ADCIN20 = 20U
, SDL_ADC_CH_ADCIN21 = 21U
, SDL_ADC_CH_ADCIN22 = 22U
, SDL_ADC_CH_ADCIN23 = 23U
,
SDL_ADC_CH_ADCIN24 = 24U
, SDL_ADC_CH_ADCIN25 = 25U
, SDL_ADC_CH_ADCIN26 = 26U
, SDL_ADC_CH_ADCIN27 = 27U
,
SDL_ADC_CH_ADCIN28 = 28U
, SDL_ADC_CH_ADCIN29 = 29U
, SDL_ADC_CH_ADCIN30 = 30U
, SDL_ADC_CH_ADCIN31 = 31U
,
SDL_ADC_CH_ADCIN0_ADCIN1 = 0U
, SDL_ADC_CH_ADCIN2_ADCIN3 = 2U
, SDL_ADC_CH_ADCIN4_ADCIN5 = 4U
, SDL_ADC_CH_ADCIN6_ADCIN7 = 6U
,
SDL_ADC_CH_ADCIN8_ADCIN9 = 8U
, SDL_ADC_CH_ADCIN10_ADCIN11 = 10U
, SDL_ADC_CH_ADCIN12_ADCIN13 = 12U
, SDL_ADC_CH_ADCIN14_ADCIN15 = 14U
,
SDL_ADC_CH_ADCIN16_ADCIN17 = 16U
, SDL_ADC_CH_ADCIN18_ADCIN19 = 18U
, SDL_ADC_CH_ADCIN20_ADCIN21 = 20U
, SDL_ADC_CH_ADCIN22_ADCIN23 = 22U
,
SDL_ADC_CH_ADCIN24_ADCIN25 = 24U
, SDL_ADC_CH_ADCIN26_ADCIN27 = 26U
, SDL_ADC_CH_ADCIN28_ADCIN29 = 28U
, SDL_ADC_CH_ADCIN30_ADCIN31 = 30U
} |
| | ADC channels. More...
|
| |
| enum | SDL_ADC_OSDetectMode {
SDL_ADC_OSDETECT_MODE_DISABLED = 0x0U
, SDL_ADC_OSDETECT_MODE_VSSA = 0x1U
, SDL_ADC_OSDETECT_MODE_VDDA = 0x2U
, SDL_ADC_OSDETECT_MODE_5BY12_VDDA = 0x3U
,
SDL_ADC_OSDETECT_MODE_7BY12_VDDA = 0x4U
} |
| | ADC OS detect modes. More...
|
| |
| enum | SDL_ADC_OSDetectConfig { SDL_ADC_FULL_SCALE = 0U
, SDL_ADC_SEVENbyTWELVE_SCALE = 1U
, SDL_ADC_FIVEbyTWELVE_SCALE = 2U
, SDL_ADC_ZERO_SCALE = 3U
} |
| | ADC OS detect config. More...
|
| |
| enum | SDL_ADC_RepeaterInst { SDL_ADC_REPINST1 = 0U
, SDL_ADC_REPINST2 = 1U
} |
| | ADC repeater instance number. More...
|
| |