G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference

Functions

__STATIC_INLINE void DDL_DAC_Enable (DAC_TypeDef *DACx)
 Enable DAC.
__STATIC_INLINE void DDL_DAC_Disable (DAC_TypeDef *DACx)
 Disable DAC.
__STATIC_INLINE uint32_t DDL_DAC_IsEnabled (DAC_TypeDef *DACx)
 Get the status of whether DAC is enabled.
__STATIC_INLINE void DDL_DAC_SetChannelTriggerSource (DAC_TypeDef *DACx, uint32_t Source)
 Set the trigger source for the channel.
__STATIC_INLINE uint32_t DDL_DAC_GetChannelTriggerSource (DAC_TypeDef *DACx)
 Get the trigger source for the channel.
__STATIC_INLINE void DDL_DAC_LFSR_SetNoneMask (DAC_TypeDef *DACx, uint32_t mask)
 Set the masking bits of the LFSR channel.
__STATIC_INLINE uint32_t DDL_DAC_LFSR_GetNoneMask (DAC_TypeDef *DACx)
 Get the masking bits of the LFSR channel.
__STATIC_INLINE void DDL_DAC_SetTriangleWaveAmplitude (DAC_TypeDef *DACx, uint32_t waveAmp)
 Set the triangle wave amplitude selector.
__STATIC_INLINE uint32_t DDL_DAC_GetTriangleWaveAmplitude (DAC_TypeDef *DACx)
 Get the triangle wave amplitude selector.
__STATIC_INLINE void DDL_DAC_SetWaveGenerateType (DAC_TypeDef *DACx, uint32_t type)
 Set the type of waveform generated.
__STATIC_INLINE uint32_t DDL_DAC_GetWaveGenerateType (DAC_TypeDef *DACx)
 Get the type of waveform generated.
__STATIC_INLINE void DDL_DAC_EnableSoftwareTrigger (DAC_TypeDef *DACx)
 Enable the channel software triggers the generation of waveforms.
__STATIC_INLINE void DDL_DAC_EnableResistorStringOutputToOpAmplifier (DAC_TypeDef *DACx)
 Enable DAC resistor string output signal to operational amplifier input.
__STATIC_INLINE void DDL_DAC_DisableResistorStringOutputToOpAmplifier (DAC_TypeDef *DACx)
 Disable DAC resistor string output signal to operational amplifier input.
__STATIC_INLINE void DDL_DAC_SetBufferOutputSource (DAC_TypeDef *DACx, uint32_t outputBufferSource)
 Set whether the BUFFER output is connected to the PAD.
__STATIC_INLINE uint32_t DDL_DAC_GetBufferOutputSource (DAC_TypeDef *DACx)
 Get whether the BUFFER output is connected to the PAD.
__STATIC_INLINE void DDL_DAC_SetRightAlignmentData (DAC_TypeDef *DACx, uint32_t data)
 Set right-aligned data register.
__STATIC_INLINE uint32_t DDL_DAC_GetRightAlignmentData (DAC_TypeDef *DACx)
 Get right-aligned data register.
__STATIC_INLINE void DDL_DAC_SetLeftAlignmentData (DAC_TypeDef *DACx, uint32_t data)
 Set left-aligned data register.
__STATIC_INLINE uint32_t DDL_DAC_GetLeftAlignmentData (DAC_TypeDef *DACx)
 Get left-aligned data register.
__STATIC_INLINE uint32_t DDL_DAC_GetOutputData (DAC_TypeDef *DACx)
 Get data output data register.

Detailed Description

Function Documentation

◆ DDL_DAC_Disable()

__STATIC_INLINE void DDL_DAC_Disable ( DAC_TypeDef * DACx)

Disable DAC.

Parameters
DACInstance
Return values
None

Definition at line 322 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_DisableResistorStringOutputToOpAmplifier()

__STATIC_INLINE void DDL_DAC_DisableResistorStringOutputToOpAmplifier ( DAC_TypeDef * DACx)

Disable DAC resistor string output signal to operational amplifier input.

Parameters
DACInstance
Return values
None

Definition at line 524 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_Enable()

__STATIC_INLINE void DDL_DAC_Enable ( DAC_TypeDef * DACx)

Enable DAC.

Parameters
DACInstance
Return values
None

Definition at line 312 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_EnableResistorStringOutputToOpAmplifier()

__STATIC_INLINE void DDL_DAC_EnableResistorStringOutputToOpAmplifier ( DAC_TypeDef * DACx)

Enable DAC resistor string output signal to operational amplifier input.

Parameters
DACInstance
Return values
None

Definition at line 514 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_EnableSoftwareTrigger()

__STATIC_INLINE void DDL_DAC_EnableSoftwareTrigger ( DAC_TypeDef * DACx)

Enable the channel software triggers the generation of waveforms.

Parameters
DACInstance
Return values
None

Definition at line 497 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_GetBufferOutputSource()

__STATIC_INLINE uint32_t DDL_DAC_GetBufferOutputSource ( DAC_TypeDef * DACx)

Get whether the BUFFER output is connected to the PAD.

Parameters
DACInstance
Return values
Wavetype

Definition at line 549 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_GetChannelTriggerSource()

__STATIC_INLINE uint32_t DDL_DAC_GetChannelTriggerSource ( DAC_TypeDef * DACx)

◆ DDL_DAC_GetLeftAlignmentData()

__STATIC_INLINE uint32_t DDL_DAC_GetLeftAlignmentData ( DAC_TypeDef * DACx)

Get left-aligned data register.

Parameters
DACInstance
Return values
data0x000 ~ 0x3FF

Definition at line 591 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_GetOutputData()

__STATIC_INLINE uint32_t DDL_DAC_GetOutputData ( DAC_TypeDef * DACx)

Get data output data register.

Parameters
DACInstance
Return values
data0x000 ~ 0x3FF

Definition at line 601 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_GetRightAlignmentData()

__STATIC_INLINE uint32_t DDL_DAC_GetRightAlignmentData ( DAC_TypeDef * DACx)

Get right-aligned data register.

Parameters
DACInstance
Return values
data0x000 ~ 0x3FF

Definition at line 570 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_GetTriangleWaveAmplitude()

__STATIC_INLINE uint32_t DDL_DAC_GetTriangleWaveAmplitude ( DAC_TypeDef * DACx)

◆ DDL_DAC_GetWaveGenerateType()

__STATIC_INLINE uint32_t DDL_DAC_GetWaveGenerateType ( DAC_TypeDef * DACx)

Get the type of waveform generated.

Parameters
DACInstance
Return values
Wavetype

Definition at line 487 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_IsEnabled()

__STATIC_INLINE uint32_t DDL_DAC_IsEnabled ( DAC_TypeDef * DACx)

Get the status of whether DAC is enabled.

Parameters
DACInstance
Return values
0or 1.

Definition at line 332 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_LFSR_GetNoneMask()

__STATIC_INLINE uint32_t DDL_DAC_LFSR_GetNoneMask ( DAC_TypeDef * DACx)

◆ DDL_DAC_LFSR_SetNoneMask()

__STATIC_INLINE void DDL_DAC_LFSR_SetNoneMask ( DAC_TypeDef * DACx,
uint32_t mask )

◆ DDL_DAC_SetBufferOutputSource()

__STATIC_INLINE void DDL_DAC_SetBufferOutputSource ( DAC_TypeDef * DACx,
uint32_t outputBufferSource )

Set whether the BUFFER output is connected to the PAD.

Parameters
DACInstance
Wavetype
Return values
None

Definition at line 537 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_SetChannelTriggerSource()

__STATIC_INLINE void DDL_DAC_SetChannelTriggerSource ( DAC_TypeDef * DACx,
uint32_t Source )

◆ DDL_DAC_SetLeftAlignmentData()

__STATIC_INLINE void DDL_DAC_SetLeftAlignmentData ( DAC_TypeDef * DACx,
uint32_t data )

Set left-aligned data register.

Parameters
DACInstance
data0x000 ~ 0x3FF
Return values
None

Definition at line 581 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_SetRightAlignmentData()

__STATIC_INLINE void DDL_DAC_SetRightAlignmentData ( DAC_TypeDef * DACx,
uint32_t data )

Set right-aligned data register.

Parameters
DACInstance
data0x000 ~ 0x3FF
Return values
None

Definition at line 560 of file g32r4xx_ddl_dac.h.

◆ DDL_DAC_SetTriangleWaveAmplitude()

__STATIC_INLINE void DDL_DAC_SetTriangleWaveAmplitude ( DAC_TypeDef * DACx,
uint32_t waveAmp )

◆ DDL_DAC_SetWaveGenerateType()

__STATIC_INLINE void DDL_DAC_SetWaveGenerateType ( DAC_TypeDef * DACx,
uint32_t type )

Set the type of waveform generated.

Parameters
DACInstance
Wavetype
Return values
None

Definition at line 473 of file g32r4xx_ddl_dac.h.