Contains all macro definitions and function prototypes support for adc firmware library on A31G12x. More...
Go to the source code of this file.
Data Structures | |
struct | ADC_CFG_Type |
Functions | |
HAL_Status_Type | HAL_ADC_Init (ADC_Type *ADCx, ADC_CFG_Type *ADC_Config) |
Initialize the ADC peripheral with the specified parameters. More... | |
HAL_Status_Type | HAL_ADC_DeInit (ADC_Type *ADCx) |
Close ADC. More... | |
HAL_Status_Type | HAL_ADC_ConfigInterrupt (ADC_Type *ADCx, FunctionalState NewState) |
ADC interrupt configuration. More... | |
HAL_Status_Type | HAL_ADC_ChannelSel (ADC_Type *ADCx, uint32_t Channel) |
Select ADC Channel Number. More... | |
HAL_Status_Type | HAL_ADC_Start (ADC_Type *ADCx) |
Start A/D conversion. More... | |
HAL_Status_Type | HAL_ADC_Stop (ADC_Type *ADCx) |
Stop A/D conversion If this function called after a conversion cycle starts, the current conversion is completed. More... | |
HAL_Status_Type | HAL_ADC_ClearStatus (ADC_Type *ADCx) |
Clear ADC channel status. More... | |
uint32_t | HAL_ADC_GetStatus (ADC_Type *ADCx) |
Get ADC channel status. More... | |
uint16_t | HAL_ADC_GetData (ADC_Type *ADCx) |
Get Result conversion from A/D data register. More... | |
Contains all macro definitions and function prototypes support for adc firmware library on A31G12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31G12x_hal_adc.h.
HAL_Status_Type HAL_ADC_ChannelSel | ( | ADC_Type * | ADCx, |
uint32_t | Channel | ||
) |
Select ADC Channel Number.
[in] | ADCx | Pointer to the target ADC
|
[in] | Channel | Channel Number
|
Definition at line 148 of file A31G12x_hal_adc.c.
HAL_Status_Type HAL_ADC_ClearStatus | ( | ADC_Type * | ADCx | ) |
Clear ADC channel status.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 214 of file A31G12x_hal_adc.c.
HAL_Status_Type HAL_ADC_ConfigInterrupt | ( | ADC_Type * | ADCx, |
FunctionalState | NewState | ||
) |
ADC interrupt configuration.
[in] | ADCx | Pointer to the target ADC
|
[in] | NewState | Next State of Interrupt Operation
|
Definition at line 116 of file A31G12x_hal_adc.c.
HAL_Status_Type HAL_ADC_DeInit | ( | ADC_Type * | ADCx | ) |
Close ADC.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 92 of file A31G12x_hal_adc.c.
References HAL_ERROR, HAL_OK, and HAL_SCU_Peripheral_EnableClock2().
uint16_t HAL_ADC_GetData | ( | ADC_Type * | ADCx | ) |
Get Result conversion from A/D data register.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 256 of file A31G12x_hal_adc.c.
uint32_t HAL_ADC_GetStatus | ( | ADC_Type * | ADCx | ) |
Get ADC channel status.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 239 of file A31G12x_hal_adc.c.
HAL_Status_Type HAL_ADC_Init | ( | ADC_Type * | ADCx, |
ADC_CFG_Type * | ADC_Config | ||
) |
Initialize the ADC peripheral with the specified parameters.
[in] | ADCx | Pointer to the target ADC
|
[in] | ADC_Config | Pointer to a ADC_CFG_Type structure that contains the configuration information for the specified peripheral. |
Definition at line 58 of file A31G12x_hal_adc.c.
References HAL_ERROR, HAL_OK, HAL_SCU_Peripheral_EnableClock2(), ADC_CFG_Type::InClkDiv, ADC_CFG_Type::RefSel, and ADC_CFG_Type::TrgSel.
HAL_Status_Type HAL_ADC_Start | ( | ADC_Type * | ADCx | ) |
Start A/D conversion.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 172 of file A31G12x_hal_adc.c.
HAL_Status_Type HAL_ADC_Stop | ( | ADC_Type * | ADCx | ) |
Stop A/D conversion If this function called after a conversion cycle starts, the current conversion is completed.
[in] | ADCx | Pointer to the target ADC
|
Definition at line 194 of file A31G12x_hal_adc.c.