G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Initialization and de-initialization functions

Functions

ErrorStatus DDL_ADC12_DeInit (ADC12_TypeDef *ADCx)
 De-initialize registers of the selected ADC instance to their default reset values.
ErrorStatus DDL_ADC12_Init (ADC12_TypeDef *ADCx, DDL_ADC12_InitTypeDef *ADC_InitStruct)
 Initialize some features of ADC instance.
void DDL_ADC12_StructInit (DDL_ADC12_InitTypeDef *ADC_InitStruct)
 Set each DDL_ADC12_InitTypeDef field to default value.
ErrorStatus DDL_ADC12_REG_Init (ADC12_TypeDef *ADCx, DDL_ADC12_REG_InitTypeDef *ADC_REG_InitStruct)
 Initialize some features of ADC group regular.
void DDL_ADC12_REG_StructInit (DDL_ADC12_REG_InitTypeDef *ADC_REG_InitStruct)
 Set each DDL_ADC12_REG_InitTypeDef field to default value.
ErrorStatus DDL_ADC12_INJ_Init (ADC12_TypeDef *ADCx, DDL_ADC12_INJ_InitTypeDef *ADC_INJ_InitStruct)
 Initialize some features of ADC group injected.
void DDL_ADC12_INJ_StructInit (DDL_ADC12_INJ_InitTypeDef *ADC_INJ_InitStruct)
 Set each DDL_ADC12_INJ_InitTypeDef field to default value.

Detailed Description

Function Documentation

◆ DDL_ADC12_DeInit()

ErrorStatus DDL_ADC12_DeInit ( ADC12_TypeDef * ADCx)

De-initialize registers of the selected ADC instance to their default reset values.

Note
To reset all ADC instances quickly (perform a hard reset), use function DDL_ADC12_CommonDeInit().
Parameters
ADCxADC instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are de-initialized
  • ERROR: ADC registers are not de-initialized

Definition at line 236 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_Init()

ErrorStatus DDL_ADC12_Init ( ADC12_TypeDef * ADCx,
DDL_ADC12_InitTypeDef * ADC_InitStruct )

Initialize some features of ADC instance.

Note
These parameters have an impact on ADC scope: ADC instance. Affects both group regular and group injected (availability of ADC group injected depends on G32 families). Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: ADC instance .
The setting of these parameters by function DDL_ADC12_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all G32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
After using this function, some other features must be configured using DDL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_InitStructPointer to a DDL_ADC12_REG_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 446 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_INJ_Init()

ErrorStatus DDL_ADC12_INJ_Init ( ADC12_TypeDef * ADCx,
DDL_ADC12_INJ_InitTypeDef * ADC_INJ_InitStruct )

Initialize some features of ADC group injected.

Note
These parameters have an impact on ADC scope: ADC group injected. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "INJ").
The setting of these parameters by function DDL_ADC12_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all G32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
After using this function, other features must be configured using DDL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_INJ_InitStructPointer to a DDL_ADC12_INJ_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 647 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_INJ_StructInit()

void DDL_ADC12_INJ_StructInit ( DDL_ADC12_INJ_InitTypeDef * ADC_INJ_InitStruct)

Set each DDL_ADC12_INJ_InitTypeDef field to default value.

Parameters
ADC_INJ_InitStructPointer to a DDL_ADC12_INJ_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 718 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_REG_Init()

ErrorStatus DDL_ADC12_REG_Init ( ADC12_TypeDef * ADCx,
DDL_ADC12_REG_InitTypeDef * ADC_REG_InitStruct )

Initialize some features of ADC group regular.

Note
These parameters have an impact on ADC scope: ADC group regular. Refer to corresponding unitary functions into Configuration of ADC hierarchical scope: group regular (functions with prefix "REG").
The setting of these parameters by function DDL_ADC12_Init() is conditioned to ADC state: ADC instance must be disabled. This condition is applied to all ADC features, for efficiency and compatibility over all G32 families. However, the different features can be set under different ADC state conditions (setting possible with ADC enabled without conversion on going, ADC enabled with conversion on going, ...) Each feature can be updated afterwards with a unitary function and potentially with ADC in a different state than disabled, refer to description of each function for setting conditioned to ADC state.
After using this function, other features must be configured using DDL unitary functions. The minimum configuration remaining to be done is:
Parameters
ADCxADC instance
ADC_REG_InitStructPointer to a DDL_ADC12_REG_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: ADC registers are initialized
  • ERROR: ADC registers are not initialized

Definition at line 517 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_REG_StructInit()

void DDL_ADC12_REG_StructInit ( DDL_ADC12_REG_InitTypeDef * ADC_REG_InitStruct)

Set each DDL_ADC12_REG_InitTypeDef field to default value.

Parameters
ADC_REG_InitStructPointer to a DDL_ADC12_REG_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 602 of file g32r4xx_ddl_adc12.c.

◆ DDL_ADC12_StructInit()

void DDL_ADC12_StructInit ( DDL_ADC12_InitTypeDef * ADC_InitStruct)

Set each DDL_ADC12_InitTypeDef field to default value.

Parameters
ADC_InitStructPointer to a DDL_ADC12_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 478 of file g32r4xx_ddl_adc12.c.