G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Capture Compare configuration

Functions

__STATIC_INLINE void DDL_TMR_CC_EnablePreload (TMR_TypeDef *TMRx)
 Enable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
__STATIC_INLINE void DDL_TMR_CC_DisablePreload (TMR_TypeDef *TMRx)
 Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.
__STATIC_INLINE uint32_t DDL_TMR_CC_IsEnabledPreload (TMR_TypeDef *TMRx)
 Indicates whether capture/compare control bits preload is enabled.
__STATIC_INLINE void DDL_TMR_CC_SetUpdate (TMR_TypeDef *TMRx, uint32_t CCUpdateSource)
 Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).
__STATIC_INLINE uint32_t DDL_TMR_CC_GetUpdate (TMR_TypeDef *TMRx)
 Get the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).
__STATIC_INLINE void DDL_TMR_CC_SetDMAReqTrigger (TMR_TypeDef *TMRx, uint32_t DMAReqTrigger)
 Set the trigger of the capture/compare DMA request.
__STATIC_INLINE uint32_t DDL_TMR_CC_GetDMAReqTrigger (TMR_TypeDef *TMRx)
 Get actual trigger of the capture/compare DMA request.
__STATIC_INLINE void DDL_TMR_CC_SetLockLevel (TMR_TypeDef *TMRx, uint32_t LockLevel)
 Set the lock level to freeze the configuration of several capture/compare parameters.
__STATIC_INLINE void DDL_TMR_CC_EnableChannel (TMR_TypeDef *TMRx, uint32_t Channels)
 Enable capture/compare channels.
__STATIC_INLINE void DDL_TMR_CC_DisableChannel (TMR_TypeDef *TMRx, uint32_t Channels)
 Disable capture/compare channels.
__STATIC_INLINE uint32_t DDL_TMR_CC_IsEnabledChannel (TMR_TypeDef *TMRx, uint32_t Channels)
 Indicate whether channel(s) is(are) enabled.

Detailed Description

Function Documentation

◆ DDL_TMR_CC_DisableChannel()

__STATIC_INLINE void DDL_TMR_CC_DisableChannel ( TMR_TypeDef * TMRx,
uint32_t Channels )

Disable capture/compare channels.

Parameters
TMRxTimer instance
ChannelsThis parameter can be a combination of the following values:
Return values
None

Definition at line 1558 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_DisablePreload()

__STATIC_INLINE void DDL_TMR_CC_DisablePreload ( TMR_TypeDef * TMRx)

Disable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.

Note
Macro IS_TMR_COMMUTATION_EVENT_INSTANCE(TMRx) can be used to check whether or not a timer instance is able to generate a commutation event.
Parameters
TMRxTimer instance
Return values
None

Definition at line 1440 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_EnableChannel()

__STATIC_INLINE void DDL_TMR_CC_EnableChannel ( TMR_TypeDef * TMRx,
uint32_t Channels )

Enable capture/compare channels.

Parameters
TMRxTimer instance
ChannelsThis parameter can be a combination of the following values:
Return values
None

Definition at line 1540 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_EnablePreload()

__STATIC_INLINE void DDL_TMR_CC_EnablePreload ( TMR_TypeDef * TMRx)

Enable the capture/compare control bits (CCxE, CCxNE and OCxM) preload.

Note
CCxE, CCxNE and OCxM bits are preloaded, after having been written, they are updated only when a commutation event (COM) occurs.
Only on channels that have a complementary output.
Macro IS_TMR_COMMUTATION_EVENT_INSTANCE(TMRx) can be used to check whether or not a timer instance is able to generate a commutation event.
Parameters
TMRxTimer instance
Return values
None

Definition at line 1428 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_GetDMAReqTrigger()

__STATIC_INLINE uint32_t DDL_TMR_CC_GetDMAReqTrigger ( TMR_TypeDef * TMRx)

Get actual trigger of the capture/compare DMA request.

Parameters
TMRxTimer instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1504 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_GetUpdate()

__STATIC_INLINE uint32_t DDL_TMR_CC_GetUpdate ( TMR_TypeDef * TMRx)

Get the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).

Note
Macro IS_TMR_COMMUTATION_EVENT_INSTANCE(TMRx) can be used to check whether or not a timer instance is able to generate a commutation event.
Parameters
TMRxTimer instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1479 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_IsEnabledChannel()

__STATIC_INLINE uint32_t DDL_TMR_CC_IsEnabledChannel ( TMR_TypeDef * TMRx,
uint32_t Channels )

Indicate whether channel(s) is(are) enabled.

Parameters
TMRxTimer instance
ChannelsThis parameter can be a combination of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 1576 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_IsEnabledPreload()

__STATIC_INLINE uint32_t DDL_TMR_CC_IsEnabledPreload ( TMR_TypeDef * TMRx)

Indicates whether capture/compare control bits preload is enabled.

Parameters
TMRxTimer instance
Return values
Stateof bit (1 or 0).

Definition at line 1450 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_SetDMAReqTrigger()

__STATIC_INLINE void DDL_TMR_CC_SetDMAReqTrigger ( TMR_TypeDef * TMRx,
uint32_t DMAReqTrigger )

Set the trigger of the capture/compare DMA request.

Parameters
TMRxTimer instance
DMAReqTriggerThis parameter can be one of the following values:
Return values
None

Definition at line 1492 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_SetLockLevel()

__STATIC_INLINE void DDL_TMR_CC_SetLockLevel ( TMR_TypeDef * TMRx,
uint32_t LockLevel )

Set the lock level to freeze the configuration of several capture/compare parameters.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not the lock mechanism is supported by a timer instance.
Parameters
TMRxTimer instance
LockLevelThis parameter can be one of the following values:
Return values
None

Definition at line 1522 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_CC_SetUpdate()

__STATIC_INLINE void DDL_TMR_CC_SetUpdate ( TMR_TypeDef * TMRx,
uint32_t CCUpdateSource )

Set the updated source of the capture/compare control bits (CCxE, CCxNE and OCxM).

Note
Macro IS_TMR_COMMUTATION_EVENT_INSTANCE(TMRx) can be used to check whether or not a timer instance is able to generate a commutation event.
Parameters
TMRxTimer instance
CCUpdateSourceThis parameter can be one of the following values:
Return values
None

Definition at line 1465 of file g32r4xx_ddl_tmr.h.