思澈科技软件开发工具包  2.20

Functions

HAL_StatusTypeDef HAL_SDADC_ConfigChannel (SDADC_HandleTypeDef *hadc, SDADC_ChannelConfTypeDef *sConfig)
 Configures the the selected channel to be linked to the regular group. More...
 
HAL_StatusTypeDef HAL_SDADC_ConfigAccu (SDADC_HandleTypeDef *hadc, SDADC_AccurateConfTypeDef *sConfig)
 SET SDADC accurate configure. More...
 
HAL_StatusTypeDef HAL_SDADC_ConfigGain (SDADC_HandleTypeDef *hadc, SDADC_GainConfTypeDef *sConfig)
 Set SDADC gain configure. More...
 

Detailed Description

Function Documentation

◆ HAL_SDADC_ConfigAccu()

HAL_StatusTypeDef HAL_SDADC_ConfigAccu ( SDADC_HandleTypeDef hadc,
SDADC_AccurateConfTypeDef sConfig 
)

SET SDADC accurate configure.

Parameters
hadcSDADC handle.
sConfigconfigure structure pointer.
Return values
HALstatus.

◆ HAL_SDADC_ConfigChannel()

HAL_StatusTypeDef HAL_SDADC_ConfigChannel ( SDADC_HandleTypeDef hadc,
SDADC_ChannelConfTypeDef sConfig 
)

Configures the the selected channel to be linked to the regular group.

Note
In case of usage of internal measurement channels: VrefInt/Vbat/TempSensor. Sampling time constraints must be respected (sampling time can be adjusted in function of SDADC clock frequency and sampling time setting). Refer to device datasheet for timings values, parameters TS_vrefint, TS_vbat, TS_temp (values rough order: 5us to 17us). These internal paths can be be disabled using function HAL_ADC_DeInit().
Possibility to update parameters on the fly: This function initializes channel into regular group, following calls to this function can be used to reconfigure some parameters of structure "SDADC_ChannelConfTypeDef" on the fly, without reseting the ADC. The setting of these parameters is conditioned to ADC state. For parameters constraints, see comments of structure "ADC_ChannelConfTypeDef".
Parameters
hadcADC handle
sConfigStructure of SDADC channel for regular group.
Return values
HALstatus

◆ HAL_SDADC_ConfigGain()

HAL_StatusTypeDef HAL_SDADC_ConfigGain ( SDADC_HandleTypeDef hadc,
SDADC_GainConfTypeDef sConfig 
)

Set SDADC gain configure.

Parameters
hadcSDADC handle.
sConfigconfigure structure pointer.
Return values
HALstatus.