ADC Driver Library Interface for Harmony v2

System Interaction Functions

Function NameDescription
DRV_ADC_DeinitializeDeinitializes the specified instance of the ADC driver module.
Implementation: Static/Dynamic.
DRV_ADC_InitializeInitializes the ADC driver.
Implementation: Static/Dynamic.
DRV_ADC_StatusProvides the current status of the ADC driver module.
Implementation: Dynamic.
DRV_ADC_TasksMaintains the driver's state machine and implements its ISR.
Implementation: Dynamic.

Client Core Configuration Functions

Function NameDescription
DRV_ADC_ClientStatusGets the current client-specific status from the ADC driver.
Implementation: Dynamic.
DRV_ADC_CloseCloses an opened-instance of the ADC driver.
Implementation: Static/Dynamic.
DRV_ADC_InputsRegisterRegisters an input set with the driver for sampling.
Implementation: Dynamic.
DRV_ADC_OpenOpens the specified ADC driver instance and returns a handle to it.
Implementation: Static/Dynamic.
DRV_ADC_SamplesAvailableIdentifies if any the ADC driver has any samples available to read.
Implementation: Static/Dynamic.
DRV_ADC_StartStarts the ADC driver sampling and converting analog values to digital.
Implementation: Static/Dynamic.
DRV_ADC_StopStops the ADC driver from sampling and converting analog values to digital.
Implementation: Static/Dynamic.
DRV_ADC_ChannelExtendedScanInputsAddAdds extended scan input on the supported devices.
Implementation: Static.
DRV_ADC_ChannelExtendedScanInputsRemoveRemoves extended scan input on the supported devices.
Implementation: Static.
DRV_ADC_ChannelScanInputsAddAdds scan input.
Implementation: Static.
DRV_ADC_ChannelScanInputsRemoveRemoves scan input.
Implementation: Static.
DRV_ADC_NegativeInputSelectSelects the negative input.
Implementation: Static.
DRV_ADC_PositiveInputSelectSelects the positive input.
Implementation: Static.

Other Functions

Function NameDescription
DRV_ADC_SamplesReadReads the converted sample data from the ADC driver.
Implementation: Static/Dynamic.
DRV_ADC_SamplesReadLatestReads the most recently converted sample data from the ADC driver.
Implementation: Dynamic.
DRV_ADC_VersionGetGets the ADC driver version in numerical format.
Implementation: Dynamic.
DRV_ADC_VersionStrGetGets the ADC driver version in string format.
Implementation: Dynamic.

Data Types and Constants

NameDescription
DRV_ADC_CLIENT_STATUSDefines the client-specific status of the ADC driver.
DRV_ADC_INITDefines the data required to initialize or reinitialize the ADC driver.
DRV_ADC_INIT_FLAGSIdentifies the initialization flags of the ADC module.
DRV_ADC_INDEX_0ADC driver index definitions.
DRV_ADC_INDEX_1This is macro DRV_ADC_INDEX_1.
DRV_ADC_INDEX_2This is macro DRV_ADC_INDEX_2.
DRV_ADC_BUFFER_HANDLEThis type defines the ADC Driver Buffer handle.
DRV_ADC_BUFFER_STATUSSpecifies the status of the buffer for the read, write and erase operations.
DRV_ADC_EVENTIdentifies the possible events that can result from a request.
DRV_ADC_EVENT_HANDLERPointer to a ADC Driver Event handler function.