G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Break function configuration

Functions

__STATIC_INLINE void DDL_TMR_EnableBRK (TMR_TypeDef *TMRx)
 Enable the break function.
__STATIC_INLINE void DDL_TMR_DisableBRK (TMR_TypeDef *TMRx)
 Disable the break function.
__STATIC_INLINE void DDL_TMR_ConfigBRK (TMR_TypeDef *TMRx, uint32_t BreakPolarity)
 Configure the break input.
__STATIC_INLINE void DDL_TMR_SetOffStates (TMR_TypeDef *TMRx, uint32_t OffStateIdle, uint32_t OffStateRun)
 Select the outputs off state (enabled v.s. disabled) in Idle and Run modes.
__STATIC_INLINE void DDL_TMR_EnableAutomaticOutput (TMR_TypeDef *TMRx)
 Enable automatic output (MOE can be set by software or automatically when a break input is active).
__STATIC_INLINE void DDL_TMR_DisableAutomaticOutput (TMR_TypeDef *TMRx)
 Disable automatic output (MOE can be set only by software).
__STATIC_INLINE uint32_t DDL_TMR_IsEnabledAutomaticOutput (TMR_TypeDef *TMRx)
 Indicate whether automatic output is enabled.
__STATIC_INLINE void DDL_TMR_EnableAllOutputs (TMR_TypeDef *TMRx)
 Enable the outputs (set the MOE bit in TMRx_BDTR register).
__STATIC_INLINE void DDL_TMR_DisableAllOutputs (TMR_TypeDef *TMRx)
 Disable the outputs (reset the MOE bit in TMRx_BDTR register).
__STATIC_INLINE uint32_t DDL_TMR_IsEnabledAllOutputs (TMR_TypeDef *TMRx)
 Indicates whether outputs are enabled.

Detailed Description

Function Documentation

◆ DDL_TMR_ConfigBRK()

__STATIC_INLINE void DDL_TMR_ConfigBRK ( TMR_TypeDef * TMRx,
uint32_t BreakPolarity )

Configure the break input.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
BreakPolarityThis parameter can be one of the following values:
Return values
None

Definition at line 2629 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_DisableAllOutputs()

__STATIC_INLINE void DDL_TMR_DisableAllOutputs ( TMR_TypeDef * TMRx)

Disable the outputs (reset the MOE bit in TMRx_BDTR register).

Note
The MOE bit in TMRx_BDTR register allows to enable /disable the outputs by software and is reset in case of break or break2 event.
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2715 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_DisableAutomaticOutput()

__STATIC_INLINE void DDL_TMR_DisableAutomaticOutput ( TMR_TypeDef * TMRx)

Disable automatic output (MOE can be set only by software).

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2675 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_DisableBRK()

__STATIC_INLINE void DDL_TMR_DisableBRK ( TMR_TypeDef * TMRx)

Disable the break function.

Parameters
TMRxTimer instance
Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Return values
None

Definition at line 2610 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_EnableAllOutputs()

__STATIC_INLINE void DDL_TMR_EnableAllOutputs ( TMR_TypeDef * TMRx)

Enable the outputs (set the MOE bit in TMRx_BDTR register).

Note
The MOE bit in TMRx_BDTR register allows to enable /disable the outputs by software and is reset in case of break or break2 event
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2701 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_EnableAutomaticOutput()

__STATIC_INLINE void DDL_TMR_EnableAutomaticOutput ( TMR_TypeDef * TMRx)

Enable automatic output (MOE can be set by software or automatically when a break input is active).

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2663 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_EnableBRK()

__STATIC_INLINE void DDL_TMR_EnableBRK ( TMR_TypeDef * TMRx)

Enable the break function.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
None

Definition at line 2594 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IsEnabledAllOutputs()

__STATIC_INLINE uint32_t DDL_TMR_IsEnabledAllOutputs ( TMR_TypeDef * TMRx)

Indicates whether outputs are enabled.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
Stateof bit (1 or 0).

Definition at line 2727 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IsEnabledAutomaticOutput()

__STATIC_INLINE uint32_t DDL_TMR_IsEnabledAutomaticOutput ( TMR_TypeDef * TMRx)

Indicate whether automatic output is enabled.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
Return values
Stateof bit (1 or 0).

Definition at line 2687 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_SetOffStates()

__STATIC_INLINE void DDL_TMR_SetOffStates ( TMR_TypeDef * TMRx,
uint32_t OffStateIdle,
uint32_t OffStateRun )

Select the outputs off state (enabled v.s. disabled) in Idle and Run modes.

Note
Macro IS_TMR_BREAK_INSTANCE(TMRx) can be used to check whether or not a timer instance provides a break input.
Parameters
TMRxTimer instance
OffStateIdleThis parameter can be one of the following values:
OffStateRunThis parameter can be one of the following values:
Return values
None

Definition at line 2651 of file g32r4xx_ddl_tmr.h.