![]() |
MAX32665 SDK Documentation
0.2
Software Development Kit Overview and API Documentation
|
Macros | |
#define | SEC(s) (((unsigned long)s) * 1000000UL) |
#define | MSEC(ms) (ms * 1000UL) |
#define | USEC(us) (us) |
Functions | |
void | TMR_Delay (mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg) |
Delays for the specified number of microseconds. More... | |
void | TMR_TO_Start (mxc_tmr_regs_t *tmr, unsigned long us, const sys_cfg_tmr_t *sys_cfg) |
Start the timeout time for the specified number of microseconds. More... | |
int | TMR_TO_Check (mxc_tmr_regs_t *tmr) |
Check if the timeout has occurred. More... | |
void | TMR_TO_Stop (mxc_tmr_regs_t *tmr) |
Stops the timer for the timeout. More... | |
void | TMR_TO_Clear (mxc_tmr_regs_t *tmr) |
Clears the timeout flag. More... | |
unsigned int | TMR_TO_Elapsed (mxc_tmr_regs_t *tmr) |
Get the number of microseconds elapsed since TMR_TO_Start(). More... | |
unsigned int | TMR_TO_Remaining (mxc_tmr_regs_t *tmr) |
Get the number of microseconds remaining in the timeout. More... | |
void | TMR_SW_Start (mxc_tmr_regs_t *tmr, const sys_cfg_tmr_t *sys_cfg) |
Start the stopwatch. More... | |
unsigned int | TMR_SW_Stop (mxc_tmr_regs_t *tmr) |
Stop the stopwatch and return the number of microseconds that have elapsed. More... | |
void TMR_Delay | ( | mxc_tmr_regs_t * | tmr, |
unsigned long | us, | ||
const sys_cfg_tmr_t * | sys_cfg | ||
) |
tmr | Which Timer instance to use |
us | Number of microseconds to delay. |
sys_cfg | System configuration object, identical to TMR_Init() |
void TMR_TO_Start | ( | mxc_tmr_regs_t * | tmr, |
unsigned long | us, | ||
const sys_cfg_tmr_t * | sys_cfg | ||
) |
tmr | Which Timer instance to use |
us | Number of microseconds in the timeout. |
sys_cfg | System configuration object, identical to TMR_Init() |
int TMR_TO_Check | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |
void TMR_TO_Stop | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |
void TMR_TO_Clear | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |
unsigned int TMR_TO_Elapsed | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |
unsigned int TMR_TO_Remaining | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |
void TMR_SW_Start | ( | mxc_tmr_regs_t * | tmr, |
const sys_cfg_tmr_t * | sys_cfg | ||
) |
tmr | Which Timer to use |
sys_cfg | System configuration object, identical to TMR_Init() |
unsigned int TMR_SW_Stop | ( | mxc_tmr_regs_t * | tmr | ) |
tmr | Which Timer instance to use |