Go to the source code of this file.
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... | |
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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_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 A31R71x_hal_adc.c.