G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
Input channel configuration

Functions

__STATIC_INLINE void DDL_TMR_IC_Config (TMR_TypeDef *TMRx, uint32_t Channel, uint32_t Configuration)
 Configure input channel.
__STATIC_INLINE void DDL_TMR_IC_SetActiveInput (TMR_TypeDef *TMRx, uint32_t Channel, uint32_t ICActiveInput)
 Set the active input.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetActiveInput (TMR_TypeDef *TMRx, uint32_t Channel)
 Get the current active input.
__STATIC_INLINE void DDL_TMR_IC_SetPrescaler (TMR_TypeDef *TMRx, uint32_t Channel, uint32_t ICPrescaler)
 Set the prescaler of input channel.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetPrescaler (TMR_TypeDef *TMRx, uint32_t Channel)
 Get the current prescaler value acting on an input channel.
__STATIC_INLINE void DDL_TMR_IC_SetFilter (TMR_TypeDef *TMRx, uint32_t Channel, uint32_t ICFilter)
 Set the input filter duration.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetFilter (TMR_TypeDef *TMRx, uint32_t Channel)
 Get the input filter duration.
__STATIC_INLINE void DDL_TMR_IC_SetPolarity (TMR_TypeDef *TMRx, uint32_t Channel, uint32_t ICPolarity)
 Set the input channel polarity.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetPolarity (TMR_TypeDef *TMRx, uint32_t Channel)
 Get the current input channel polarity.
__STATIC_INLINE void DDL_TMR_IC_EnableXORCombination (TMR_TypeDef *TMRx)
 Connect the TMRx_CH1, CH2 and CH3 pins to the TI1 input (XOR combination).
__STATIC_INLINE void DDL_TMR_IC_DisableXORCombination (TMR_TypeDef *TMRx)
 Disconnect the TMRx_CH1, CH2 and CH3 pins from the TI1 input.
__STATIC_INLINE uint32_t DDL_TMR_IC_IsEnabledXORCombination (TMR_TypeDef *TMRx)
 Indicates whether the TMRx_CH1, CH2 and CH3 pins are connectected to the TI1 input.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH1 (TMR_TypeDef *TMRx)
 Get captured value for input channel 1.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH2 (TMR_TypeDef *TMRx)
 Get captured value for input channel 2.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH3 (TMR_TypeDef *TMRx)
 Get captured value for input channel 3.
__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH4 (TMR_TypeDef *TMRx)
 Get captured value for input channel 4.

Detailed Description

Function Documentation

◆ DDL_TMR_IC_Config()

__STATIC_INLINE void DDL_TMR_IC_Config ( TMR_TypeDef * TMRx,
uint32_t Channel,
uint32_t Configuration )

Configure input channel.

Parameters
TMRxTimer instance
ChannelThis parameter can be one of the following values:
ConfigurationThis parameter must be a combination of all the following values:
Return values
None

Definition at line 2068 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_DisableXORCombination()

__STATIC_INLINE void DDL_TMR_IC_DisableXORCombination ( TMR_TypeDef * TMRx)

Disconnect the TMRx_CH1, CH2 and CH3 pins from the TI1 input.

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

Definition at line 2290 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_EnableXORCombination()

__STATIC_INLINE void DDL_TMR_IC_EnableXORCombination ( TMR_TypeDef * TMRx)

Connect the TMRx_CH1, CH2 and CH3 pins to the TI1 input (XOR combination).

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

Definition at line 2278 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetActiveInput()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetActiveInput ( TMR_TypeDef * TMRx,
uint32_t Channel )

Get the current active input.

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

Definition at line 2113 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetCaptureCH1()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH1 ( TMR_TypeDef * TMRx)

Get captured value for input channel 1.

Note
In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
Macro IS_TMR_CC1_INSTANCE(TMRx) can be used to check whether or not input channel 1 is supported by a timer instance.
Parameters
TMRxTimer instance
Return values
CapturedValue(between Min_Data=0 and Max_Data=65535)

Definition at line 2315 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetCaptureCH2()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH2 ( TMR_TypeDef * TMRx)

Get captured value for input channel 2.

Note
In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
Macro IS_TMR_CC2_INSTANCE(TMRx) can be used to check whether or not input channel 2 is supported by a timer instance.
Parameters
TMRxTimer instance
Return values
CapturedValue(between Min_Data=0 and Max_Data=65535)

Definition at line 2328 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetCaptureCH3()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH3 ( TMR_TypeDef * TMRx)

Get captured value for input channel 3.

Note
In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
Macro IS_TMR_CC3_INSTANCE(TMRx) can be used to check whether or not input channel 3 is supported by a timer instance.
Parameters
TMRxTimer instance
Return values
CapturedValue(between Min_Data=0 and Max_Data=65535)

Definition at line 2341 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetCaptureCH4()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetCaptureCH4 ( TMR_TypeDef * TMRx)

Get captured value for input channel 4.

Note
In 32-bit timer implementations returned captured value can be between 0x00000000 and 0xFFFFFFFF.
Macro IS_TMR_CC4_INSTANCE(TMRx) can be used to check whether or not input channel 4 is supported by a timer instance.
Parameters
TMRxTimer instance
Return values
CapturedValue(between Min_Data=0 and Max_Data=65535)

Definition at line 2354 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetFilter()

◆ DDL_TMR_IC_GetPolarity()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetPolarity ( TMR_TypeDef * TMRx,
uint32_t Channel )

Get the current input channel polarity.

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

Definition at line 2264 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_GetPrescaler()

__STATIC_INLINE uint32_t DDL_TMR_IC_GetPrescaler ( TMR_TypeDef * TMRx,
uint32_t Channel )

Get the current prescaler value acting on an input channel.

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

Definition at line 2156 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_IsEnabledXORCombination()

__STATIC_INLINE uint32_t DDL_TMR_IC_IsEnabledXORCombination ( TMR_TypeDef * TMRx)

Indicates whether the TMRx_CH1, CH2 and CH3 pins are connectected to the TI1 input.

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

Definition at line 2302 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_SetActiveInput()

__STATIC_INLINE void DDL_TMR_IC_SetActiveInput ( TMR_TypeDef * TMRx,
uint32_t Channel,
uint32_t ICActiveInput )

Set the active input.

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

Definition at line 2093 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_SetFilter()

__STATIC_INLINE void DDL_TMR_IC_SetFilter ( TMR_TypeDef * TMRx,
uint32_t Channel,
uint32_t ICFilter )

◆ DDL_TMR_IC_SetPolarity()

__STATIC_INLINE void DDL_TMR_IC_SetPolarity ( TMR_TypeDef * TMRx,
uint32_t Channel,
uint32_t ICPolarity )

Set the input channel polarity.

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

Definition at line 2244 of file g32r4xx_ddl_tmr.h.

◆ DDL_TMR_IC_SetPrescaler()

__STATIC_INLINE void DDL_TMR_IC_SetPrescaler ( TMR_TypeDef * TMRx,
uint32_t Channel,
uint32_t ICPrescaler )

Set the prescaler of input channel.

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

Definition at line 2135 of file g32r4xx_ddl_tmr.h.