![]() |
MAX32650 Peripheral Driver API
Peripheral Driver API for the MAX32650
|
Modules | |
| TMR_Registers | |
Data Structures | |
| struct | mxc_tmr_cfg_t |
Enumerations | |
| enum | mxc_tmr_pres_t |
| enum | mxc_tmr_mode_t |
| enum | mxc_tmr_unit_t |
| struct mxc_tmr_cfg_t |
Timer Configuration.
Data Fields | |
| mxc_tmr_pres_t | pres |
| uint32_t | cmp_cnt |
| unsigned | pol |
| enum mxc_tmr_mode_t |
Timer modes.
| enum mxc_tmr_pres_t |
Timer prescaler values.
| enum mxc_tmr_unit_t |
| void MXC_TMR_ClearFlags | ( | mxc_tmr_regs_t * | tmr | ) |
Clear the timer interrupt.
| tmr | Pointer to timer module. |
| void MXC_TMR_Delay | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | us | ||
| ) |
Dealay for a set periord of time measured in microseconds.
| tmr | The timer | |
| [in] | us | microseconds to delay for |
| uint32_t MXC_TMR_GetCapture | ( | mxc_tmr_regs_t * | tmr | ) |
Get the timer capture count.
| tmr | Pointer to timer module. |
| uint32_t MXC_TMR_GetCompare | ( | mxc_tmr_regs_t * | tmr | ) |
Get the timer compare count.
| tmr | Pointer to timer module. |
| uint32_t MXC_TMR_GetCount | ( | mxc_tmr_regs_t * | tmr | ) |
Get the timer count.
| tmr | Pointer to timer module. |
| uint32_t MXC_TMR_GetFlags | ( | mxc_tmr_regs_t * | tmr | ) |
Get the timer interrupt status.
| tmr | Pointer to timer module. |
| int MXC_TMR_GetTime | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | ticks, | ||
| uint32_t * | time, | ||
| mxc_tmr_unit_t * | units | ||
| ) |
Convert timer ticks to real time.
| tmr | Pointer to timer module to initialize. |
| ticks | Number of ticks. |
| time | Pointer to store number of units of time. |
| units | Pointer to store the units that time represents. |
| void MXC_TMR_Init | ( | mxc_tmr_regs_t * | tmr, |
| mxc_tmr_cfg_t * | cfg | ||
| ) |
Initialize timer module clock.
| tmr | Pointer to timer module to initialize. |
| cfg | configuration object |
| void MXC_TMR_SetCompare | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | cmp_cnt | ||
| ) |
Set the timer compare count.
| tmr | Pointer to timer module. |
| cmp_cnt | New compare count. |
| void MXC_TMR_SetCount | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | cnt | ||
| ) |
Set the timer count.
| tmr | Pointer to timer module. |
| cnt | New count. |
| int MXC_TMR_SetPWM | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | pwm | ||
| ) |
Set the timer pwm count.
| tmr | Pointer to timer module to initialize |
| pwm | New pwm count |
| void MXC_TMR_Shutdown | ( | mxc_tmr_regs_t * | tmr | ) |
Shutdown timer module clock.
| tmr | Pointer to timer module to shutdown. |
| void MXC_TMR_Start | ( | mxc_tmr_regs_t * | tmr | ) |
Start the timer counting.
| tmr | Pointer to timer module to initialize. |
| void MXC_TMR_Stop | ( | mxc_tmr_regs_t * | tmr | ) |
Stop the timer.
| tmr | Pointer to timer module to initialize. |
| void MXC_TMR_SW_Start | ( | mxc_tmr_regs_t * | tmr | ) |
Start stopwatch.
| tmr | The timer |
| unsigned int MXC_TMR_SW_Stop | ( | mxc_tmr_regs_t * | tmr | ) |
Stopwatch stop.
| tmr | The timer |
| int MXC_TMR_TO_Check | ( | mxc_tmr_regs_t * | tmr | ) |
Check on time out timer.
| tmr | The timer |
| void MXC_TMR_TO_Clear | ( | mxc_tmr_regs_t * | tmr | ) |
Clear timeout timer back to zero.
| tmr | The timer |
| unsigned int MXC_TMR_TO_Elapsed | ( | mxc_tmr_regs_t * | tmr | ) |
Get elapsed time of timeout timer.
| tmr | The timer |
| unsigned int MXC_TMR_TO_Remaining | ( | mxc_tmr_regs_t * | tmr | ) |
Amount of time remaining until timeour.
| tmr | The timer |
| void MXC_TMR_TO_Start | ( | mxc_tmr_regs_t * | tmr, |
| uint32_t | us | ||
| ) |
Start a timer that will time out after a certain number of microseconds.
| tmr | The timer | |
| [in] | us | microseconds to time out after |
| void MXC_TMR_TO_Stop | ( | mxc_tmr_regs_t * | tmr | ) |
Stop the Timeout timer.
| tmr | The timer |