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

Functions

ErrorStatus DDL_COMP_Init (COMP_TypeDef *COMPx, DDL_COMP_InitTypeDef *COMP_InitStruct)
 Initialize COMP function.
ErrorStatus DDL_COMP_DeInit (COMP_TypeDef *COMPx)
 De-Initialize COMP function.
void DDL_COMP_StructInit (DDL_COMP_InitTypeDef *COMP_InitStruct)
 Set the fields of structure COMP_InitStruct to default values.

Detailed Description

Function Documentation

◆ DDL_COMP_DeInit()

ErrorStatus DDL_COMP_DeInit ( COMP_TypeDef * COMPx)

De-Initialize COMP function.

Parameters
COMPxCOMP instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: COMP registers are de-initialized
  • ERROR: COMP registers are not de-initialized
Note
If COMP instance is locked, de-initialization can't be performed. The only way to unlock the COMP instance is to perform a system reset.

Definition at line 177 of file g32r4xx_ddl_comp.c.

◆ DDL_COMP_Init()

ErrorStatus DDL_COMP_Init ( COMP_TypeDef * COMPx,
DDL_COMP_InitTypeDef * COMP_InitStruct )

Initialize COMP function.

Parameters
COMPxCOMP instance
COMP_InitStructPointer to a DDL_COMP_InitTypeDef structure
Return values
AnErrorStatus enumeration value:
  • SUCCESS: COMP registers are initialized
  • ERROR: COMP registers are not initialized

Definition at line 134 of file g32r4xx_ddl_comp.c.

◆ DDL_COMP_StructInit()

void DDL_COMP_StructInit ( DDL_COMP_InitTypeDef * COMP_InitStruct)

Set the fields of structure COMP_InitStruct to default values.

Parameters
COMP_InitStructPointer to a DDL_COMP_InitTypeDef structure whose fields will be set to default values.
Return values
None

Definition at line 206 of file g32r4xx_ddl_comp.c.