G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Timer synchronisation configuration

Functions

__STATIC_INLINE void DDL_TMR_SetTriggerOutput (TMR_TypeDef *TMRx, uint32_t TimerSynchronization)
 Set the trigger output (TRGO) used for timer synchronization .
__STATIC_INLINE void DDL_TMR_SetSlaveMode (TMR_TypeDef *TMRx, uint32_t SlaveMode)
 Set the synchronization mode of a slave timer.
__STATIC_INLINE void DDL_TMR_SetTriggerInput (TMR_TypeDef *TMRx, uint32_t TriggerInput)
 Set the selects the trigger input to be used to synchronize the counter.
__STATIC_INLINE void DDL_TMR_EnableMasterSlaveMode (TMR_TypeDef *TMRx)
 Enable the Master/Slave mode.
__STATIC_INLINE void DDL_TMR_DisableMasterSlaveMode (TMR_TypeDef *TMRx)
 Disable the Master/Slave mode.
__STATIC_INLINE uint32_t DDL_TMR_IsEnabledMasterSlaveMode (TMR_TypeDef *TMRx)
 Indicates whether the Master/Slave mode is enabled.
__STATIC_INLINE void DDL_TMR_ConfigETR (TMR_TypeDef *TMRx, uint32_t ETRPolarity, uint32_t ETRPrescaler, uint32_t ETRFilter)
 Configure the external trigger (ETR) input.

Detailed Description

Function Documentation

◆ DDL_TMR_ConfigETR()

__STATIC_INLINE void DDL_TMR_ConfigETR ( TMR_TypeDef * TMRx,
uint32_t ETRPolarity,
uint32_t ETRPrescaler,
uint32_t ETRFilter )

Configure the external trigger (ETR) input.

Note
Macro IS_TMR_ETR_INSTANCE(TMRx) can be used to check whether or not a timer instance provides an external trigger input.
Parameters
TMRxTimer instance
ETRPolarityThis parameter can be one of the following values:
ETRPrescalerThis parameter can be one of the following values:
ETRFilterThis parameter can be one of the following values:
Return values
None

Definition at line 2575 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_DisableMasterSlaveMode()

__STATIC_INLINE void DDL_TMR_DisableMasterSlaveMode ( TMR_TypeDef * TMRx)

Disable the Master/Slave mode.

Note
Macro IS_TMR_SLAVE_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a slave timer.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2526 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_EnableMasterSlaveMode()

__STATIC_INLINE void DDL_TMR_EnableMasterSlaveMode ( TMR_TypeDef * TMRx)

Enable the Master/Slave mode.

Note
Macro IS_TMR_SLAVE_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a slave timer.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2514 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IsEnabledMasterSlaveMode()

__STATIC_INLINE uint32_t DDL_TMR_IsEnabledMasterSlaveMode ( TMR_TypeDef * TMRx)

Indicates whether the Master/Slave mode is enabled.

Note
Macro IS_TMR_SLAVE_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a slave timer.
Parameters
TMRxTimer instance
Return values
Stateof bit (1 or 0).

Definition at line 2538 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_SetSlaveMode()

__STATIC_INLINE void DDL_TMR_SetSlaveMode ( TMR_TypeDef * TMRx,
uint32_t SlaveMode )

Set the synchronization mode of a slave timer.

Note
Macro IS_TMR_SLAVE_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a slave timer.
Parameters
TMRxTimer instance
SlaveModeThis parameter can be one of the following values:
Return values
None

Definition at line 2481 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_SetTriggerInput()

__STATIC_INLINE void DDL_TMR_SetTriggerInput ( TMR_TypeDef * TMRx,
uint32_t TriggerInput )

Set the selects the trigger input to be used to synchronize the counter.

Note
Macro IS_TMR_SLAVE_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a slave timer.
Parameters
TMRxTimer instance
TriggerInputThis parameter can be one of the following values:
Return values
None

Definition at line 2502 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_SetTriggerOutput()

__STATIC_INLINE void DDL_TMR_SetTriggerOutput ( TMR_TypeDef * TMRx,
uint32_t TimerSynchronization )

Set the trigger output (TRGO) used for timer synchronization .

Note
Macro IS_TMR_MASTER_INSTANCE(TMRx) can be used to check whether or not a timer instance can operate as a master timer.
Parameters
TMRxTimer instance
TimerSynchronizationThis parameter can be one of the following values:
Return values
None

Definition at line 2464 of file g32r4xx_ddl_tmr.h.