![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Macros | |
| #define | __DDL_TMR_CALC_DEADTMRE(__TMRCLK__, __CKD__, __DT__) |
| HELPER macro calculating DTG[0:7] in the TMRx_BDTR register to achieve the requested dead time duration. | |
| #define | __DDL_TMR_CALC_PSC(__TMRCLK__, __CNTCLK__) |
| HELPER macro calculating the prescaler value to achieve the required counter clock frequency. | |
| #define | __DDL_TMR_CALC_ARR(__TMRCLK__, __PSC__, __FREQ__) |
| HELPER macro calculating the auto-reload value to achieve the required output signal frequency. | |
| #define | __DDL_TMR_CALC_DELAY(__TMRCLK__, __PSC__, __DELAY__) |
| HELPER macro calculating the compare value required to achieve the required timer output compare active/inactive delay. | |
| #define | __DDL_TMR_CALC_PULSE(__TMRCLK__, __PSC__, __DELAY__, __PULSE__) |
| HELPER macro calculating the auto-reload value to achieve the required pulse duration (when the timer operates in one pulse mode). | |
| #define | __DDL_TMR_GET_ICPSC_RATIO(__ICPSC__) |
| HELPER macro retrieving the ratio of the input capture prescaler. | |
| #define __DDL_TMR_CALC_ARR | ( | __TMRCLK__, | |
| __PSC__, | |||
| __FREQ__ ) |
HELPER macro calculating the auto-reload value to achieve the required output signal frequency.
| __TMRCLK__ | timer input clock frequency (in Hz) |
| __PSC__ | prescaler |
| __FREQ__ | output signal frequency (in Hz) |
| Auto-reload | value (between Min_Data=0 and Max_Data=65535) |
Definition at line 1002 of file g32r4xx_ddl_tmr.h.
| #define __DDL_TMR_CALC_DEADTMRE | ( | __TMRCLK__, | |
| __CKD__, | |||
| __DT__ ) |
HELPER macro calculating DTG[0:7] in the TMRx_BDTR register to achieve the requested dead time duration.
| __TMRCLK__ | timer input clock frequency (in Hz) |
| __CKD__ | This parameter can be one of the following values: |
| __DT__ | deadtime duration (in ns) |
| DTG[0:7] |
Definition at line 970 of file g32r4xx_ddl_tmr.h.
| #define __DDL_TMR_CALC_DELAY | ( | __TMRCLK__, | |
| __PSC__, | |||
| __DELAY__ ) |
HELPER macro calculating the compare value required to achieve the required timer output compare active/inactive delay.
| __TMRCLK__ | timer input clock frequency (in Hz) |
| __PSC__ | prescaler |
| __DELAY__ | timer output compare active/inactive delay (in us) |
| Compare | value (between Min_Data=0 and Max_Data=65535) |
Definition at line 1014 of file g32r4xx_ddl_tmr.h.
| #define __DDL_TMR_CALC_PSC | ( | __TMRCLK__, | |
| __CNTCLK__ ) |
HELPER macro calculating the prescaler value to achieve the required counter clock frequency.
| __TMRCLK__ | timer input clock frequency (in Hz) |
| __CNTCLK__ | counter clock frequency (in Hz) |
| Prescaler | value (between Min_Data=0 and Max_Data=65535) |
Definition at line 991 of file g32r4xx_ddl_tmr.h.
| #define __DDL_TMR_CALC_PULSE | ( | __TMRCLK__, | |
| __PSC__, | |||
| __DELAY__, | |||
| __PULSE__ ) |
HELPER macro calculating the auto-reload value to achieve the required pulse duration (when the timer operates in one pulse mode).
| __TMRCLK__ | timer input clock frequency (in Hz) |
| __PSC__ | prescaler |
| __DELAY__ | timer output compare active/inactive delay (in us) |
| __PULSE__ | pulse duration (in us) |
| Auto-reload | value (between Min_Data=0 and Max_Data=65535) |
Definition at line 1028 of file g32r4xx_ddl_tmr.h.
| #define __DDL_TMR_GET_ICPSC_RATIO | ( | __ICPSC__ | ) |
HELPER macro retrieving the ratio of the input capture prescaler.
| __ICPSC__ | This parameter can be one of the following values: |
| Input | capture prescaler ratio (1, 2, 4 or 8) |
Definition at line 1042 of file g32r4xx_ddl_tmr.h.