![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Functions | |
| __STATIC_INLINE void | DDL_TMR_EnableCounter (TMR_TypeDef *TMRx) |
| Enable timer counter. | |
| __STATIC_INLINE void | DDL_TMR_DisableCounter (TMR_TypeDef *TMRx) |
| Disable timer counter. | |
| __STATIC_INLINE uint32_t | DDL_TMR_IsEnabledCounter (TMR_TypeDef *TMRx) |
| Indicates whether the timer counter is enabled. | |
| __STATIC_INLINE void | DDL_TMR_EnableUpdateEvent (TMR_TypeDef *TMRx) |
| Enable update event generation. | |
| __STATIC_INLINE void | DDL_TMR_DisableUpdateEvent (TMR_TypeDef *TMRx) |
| Disable update event generation. | |
| __STATIC_INLINE uint32_t | DDL_TMR_IsEnabledUpdateEvent (TMR_TypeDef *TMRx) |
| Indicates whether update event generation is enabled. | |
| __STATIC_INLINE void | DDL_TMR_SetUpdateSource (TMR_TypeDef *TMRx, uint32_t UpdateSource) |
| Set update event source. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetUpdateSource (TMR_TypeDef *TMRx) |
| Get actual event update source. | |
| __STATIC_INLINE void | DDL_TMR_SetOnePulseMode (TMR_TypeDef *TMRx, uint32_t OnePulseMode) |
| Set one pulse mode (one shot v.s. repetitive). | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetOnePulseMode (TMR_TypeDef *TMRx) |
| Get actual one pulse mode. | |
| __STATIC_INLINE void | DDL_TMR_SetCounterMode (TMR_TypeDef *TMRx, uint32_t CounterMode) |
| Set the timer counter counting mode. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetCounterMode (TMR_TypeDef *TMRx) |
| Get actual counter mode. | |
| __STATIC_INLINE void | DDL_TMR_EnableARRPreload (TMR_TypeDef *TMRx) |
| Enable auto-reload (ARR) preload. | |
| __STATIC_INLINE void | DDL_TMR_DisableARRPreload (TMR_TypeDef *TMRx) |
| Disable auto-reload (ARR) preload. | |
| __STATIC_INLINE uint32_t | DDL_TMR_IsEnabledARRPreload (TMR_TypeDef *TMRx) |
| Indicates whether auto-reload (ARR) preload is enabled. | |
| __STATIC_INLINE void | DDL_TMR_SetClockDivision (TMR_TypeDef *TMRx, uint32_t ClockDivision) |
| Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetClockDivision (TMR_TypeDef *TMRx) |
| Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters. | |
| __STATIC_INLINE void | DDL_TMR_SetCounter (TMR_TypeDef *TMRx, uint32_t Counter) |
| Set the counter value. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetCounter (TMR_TypeDef *TMRx) |
| Get the counter value. | |
| __STATIC_INLINE void | DDL_TMR_SetDirection (TMR_TypeDef *TMRx, uint32_t Direction) |
| Set the current direction of the counter. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetDirection (TMR_TypeDef *TMRx) |
| Get the current direction of the counter. | |
| __STATIC_INLINE void | DDL_TMR_SetPrescaler (TMR_TypeDef *TMRx, uint32_t Prescaler) |
| Set the prescaler value. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetPrescaler (TMR_TypeDef *TMRx) |
| Get the prescaler value. | |
| __STATIC_INLINE void | DDL_TMR_SetAutoReload (TMR_TypeDef *TMRx, uint32_t AutoReload) |
| Set the auto-reload value. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetAutoReload (TMR_TypeDef *TMRx) |
| Get the auto-reload value. | |
| __STATIC_INLINE void | DDL_TMR_SetRepetitionCounter (TMR_TypeDef *TMRx, uint32_t RepetitionCounter) |
| Set the repetition counter value. | |
| __STATIC_INLINE uint32_t | DDL_TMR_GetRepetitionCounter (TMR_TypeDef *TMRx) |
| Get the repetition counter value. | |
| __STATIC_INLINE void DDL_TMR_DisableARRPreload | ( | TMR_TypeDef * | TMRx | ) |
Disable auto-reload (ARR) preload.
| TMRx | Timer instance |
| None |
Definition at line 1242 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_DisableCounter | ( | TMR_TypeDef * | TMRx | ) |
Disable timer counter.
| TMRx | Timer instance |
| None |
Definition at line 1076 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_DisableUpdateEvent | ( | TMR_TypeDef * | TMRx | ) |
Disable update event generation.
| TMRx | Timer instance |
| None |
Definition at line 1106 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_EnableARRPreload | ( | TMR_TypeDef * | TMRx | ) |
Enable auto-reload (ARR) preload.
| TMRx | Timer instance |
| None |
Definition at line 1232 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_EnableCounter | ( | TMR_TypeDef * | TMRx | ) |
Enable timer counter.
| TMRx | Timer instance |
| None |
Definition at line 1066 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_EnableUpdateEvent | ( | TMR_TypeDef * | TMRx | ) |
Enable update event generation.
| TMRx | Timer instance |
| None |
Definition at line 1096 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetAutoReload | ( | TMR_TypeDef * | TMRx | ) |
Get the auto-reload value.
| TMRx | Timer instance |
| Auto-reload | value |
Definition at line 1381 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetClockDivision | ( | TMR_TypeDef * | TMRx | ) |
Get the actual division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
| TMRx | Timer instance |
| Returned | value can be one of the following values: |
Definition at line 1287 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetCounter | ( | TMR_TypeDef * | TMRx | ) |
Get the counter value.
| TMRx | Timer instance |
| Counter | value (between Min_Data=0 and Max_Data=0xFFFF or 0xFFFFFFFF) |
Definition at line 1308 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetCounterMode | ( | TMR_TypeDef * | TMRx | ) |
Get actual counter mode.
| TMRx | Timer instance |
| Returned | value can be one of the following values: |
Definition at line 1213 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetDirection | ( | TMR_TypeDef * | TMRx | ) |
Get the current direction of the counter.
| TMRx | Timer instance |
| Returned | value can be one of the following values: |
Definition at line 1333 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetOnePulseMode | ( | TMR_TypeDef * | TMRx | ) |
Get actual one pulse mode.
| TMRx | Timer instance |
| Returned | value can be one of the following values: |
Definition at line 1173 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetPrescaler | ( | TMR_TypeDef * | TMRx | ) |
Get the prescaler value.
| TMRx | Timer instance |
| Prescaler | value between Min_Data=0 and Max_Data=65535 |
Definition at line 1358 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetRepetitionCounter | ( | TMR_TypeDef * | TMRx | ) |
Get the repetition counter value.
| TMRx | Timer instance |
| Repetition | counter value |
Definition at line 1406 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_GetUpdateSource | ( | TMR_TypeDef * | TMRx | ) |
Get actual event update source.
| TMRx | Timer instance |
| Returned | value can be one of the following values: |
Definition at line 1148 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_IsEnabledARRPreload | ( | TMR_TypeDef * | TMRx | ) |
Indicates whether auto-reload (ARR) preload is enabled.
| TMRx | Timer instance |
| State | of bit (1 or 0). |
Definition at line 1252 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_IsEnabledCounter | ( | TMR_TypeDef * | TMRx | ) |
Indicates whether the timer counter is enabled.
| TMRx | Timer instance |
| State | of bit (1 or 0). |
Definition at line 1086 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE uint32_t DDL_TMR_IsEnabledUpdateEvent | ( | TMR_TypeDef * | TMRx | ) |
Indicates whether update event generation is enabled.
| TMRx | Timer instance |
| Inverted | state of bit (0 or 1). |
Definition at line 1116 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetAutoReload | ( | TMR_TypeDef * | TMRx, |
| uint32_t | AutoReload ) |
Set the auto-reload value.
| TMRx | Timer instance |
| AutoReload | between Min_Data=0 and Max_Data=65535 |
| None |
Definition at line 1371 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetClockDivision | ( | TMR_TypeDef * | TMRx, |
| uint32_t | ClockDivision ) |
Set the division ratio between the timer clock and the sampling clock used by the dead-time generators (when supported) and the digital filters.
| TMRx | Timer instance |
| ClockDivision | This parameter can be one of the following values: |
| None |
Definition at line 1270 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetCounter | ( | TMR_TypeDef * | TMRx, |
| uint32_t | Counter ) |
Set the counter value.
| TMRx | Timer instance |
| Counter | Counter value (between Min_Data=0 and Max_Data=0xFFFF or 0xFFFFFFFF) |
| None |
Definition at line 1298 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetCounterMode | ( | TMR_TypeDef * | TMRx, |
| uint32_t | CounterMode ) |
Set the timer counter counting mode.
| TMRx | Timer instance |
| CounterMode | This parameter can be one of the following values: |
| None |
Definition at line 1195 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetDirection | ( | TMR_TypeDef * | TMRx, |
| uint32_t | Direction ) |
Set the current direction of the counter.
| TMRx | Timer instance |
| Direction | This value can be one of the following values: |
| None |
Definition at line 1321 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetOnePulseMode | ( | TMR_TypeDef * | TMRx, |
| uint32_t | OnePulseMode ) |
Set one pulse mode (one shot v.s. repetitive).
| TMRx | Timer instance |
| OnePulseMode | This parameter can be one of the following values: |
| None |
Definition at line 1161 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetPrescaler | ( | TMR_TypeDef * | TMRx, |
| uint32_t | Prescaler ) |
Set the prescaler value.
| TMRx | Timer instance |
| Prescaler | between Min_Data=0 and Max_Data=65535 |
| None |
Definition at line 1348 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetRepetitionCounter | ( | TMR_TypeDef * | TMRx, |
| uint32_t | RepetitionCounter ) |
Set the repetition counter value.
| TMRx | Timer instance |
| RepetitionCounter | between Min_Data=0 and Max_Data=255 or 65535 for advanced timer. |
| None |
Definition at line 1394 of file g32r4xx_ddl_tmr.h.
| __STATIC_INLINE void DDL_TMR_SetUpdateSource | ( | TMR_TypeDef * | TMRx, |
| uint32_t | UpdateSource ) |
Set update event source.
| TMRx | Timer instance |
| UpdateSource | This parameter can be one of the following values: |
| None |
Definition at line 1136 of file g32r4xx_ddl_tmr.h.