 |
MAX32665 Peripheral Driver API
Peripheral Driver API for the MAX32665
|
#define MXC_S_WUT_CTRL_PRES_DIV32
Definition: wut_regs.h:182
void MXC_WUT_RestoreBBClock(uint32_t dbbFreq)
Restore the DBB clock with the stored count and snapshot values.
#define MXC_S_WUT_CTRL_PRES_DIV64
Definition: wut_regs.h:184
#define MXC_V_WUT_CTRL_TMODE_CONTINUOUS
Definition: wut_regs.h:166
#define MXC_S_WUT_CTRL_PRES_DIV1
Definition: wut_regs.h:172
#define MXC_S_WUT_CTRL_PRES_DIV4
Definition: wut_regs.h:176
@ MXC_WUT_UNIT_NANOSEC
Definition: wut.h:90
mxc_wut_mode_t
Wakeup Timer modes.
Definition: wut.h:81
uint32_t MXC_WUT_GetCapture(void)
Get the timer capture count.
void MXC_WUT_SetCount(uint32_t cnt)
Set the timer count.
void MXC_WUT_Store(void)
Store the count and snapshot values.
@ MXC_WUT_PRES_128
Divide input clock by 64.
Definition: wut.h:70
@ MXC_WUT_PRES_32
Divide input clock by 16.
Definition: wut.h:68
uint32_t MXC_WUT_GetCompare(void)
Get the timer compare count.
void MXC_WUT_SetCompare(uint32_t cmp_cnt)
Set the timer compare count.
int MXC_WUT_GetTicks(uint32_t time, mxc_wut_unit_t units, uint32_t *ticks)
Convert real time to timer ticks.
@ MXC_WUT_UNIT_SEC
Definition: wut.h:93
@ MXC_WUT_PRES_64
Divide input clock by 32.
Definition: wut.h:69
uint32_t MXC_WUT_GetSleepTicks(void)
Get the difference between the stored counter value and the current counter value.
@ MXC_WUT_PRES_256
Divide input clock by 128.
Definition: wut.h:71
@ MXC_WUT_PRES_1024
Divide input clock by 512.
Definition: wut.h:73
@ MXC_WUT_PRES_4
Divide input clock by 2.
Definition: wut.h:65
mxc_wut_pres_t
Wakeup Timer prescaler values.
Definition: wut.h:62
@ MXC_WUT_UNIT_MILLISEC
Definition: wut.h:92
#define MXC_F_WUT_CTRL_PRES3
Definition: wut_regs.h:205
Wakeup Timer Configuration.
Definition: wut.h:99
void MXC_WUT_Delay_MS(uint32_t waitMs)
Delays for the given number of milliseconds.
void MXC_WUT_Config(const mxc_wut_cfg_t *cfg)
Configure the timer.
mxc_wut_unit_t
Wakeup Timer units of time enumeration.
Definition: wut.h:89
#define MXC_S_WUT_CTRL_PRES_DIV128
Definition: wut_regs.h:186
#define MXC_S_WUT_CTRL_PRES_DIV16
Definition: wut_regs.h:180
void MXC_WUT_Disable(void)
Disable the timer.
uint32_t MXC_WUT_IntStatus(void)
Get the timer interrupt status.
uint32_t cmp_cnt
Desired timer mode.
Definition: wut.h:101
void MXC_WUT_Init(mxc_wut_pres_t pres)
Initialize timer module clock.
void MXC_WUT_Edge(void)
Wait for an edge of the WUT count register.
@ MXC_WUT_PRES_2
Divide input clock by 1.
Definition: wut.h:64
@ MXC_WUT_PRES_8
Divide input clock by 4.
Definition: wut.h:66
#define MXC_V_WUT_CTRL_TMODE_ONESHOT
Definition: wut_regs.h:164
void MXC_WUT_Enable(void)
Enable the timer.
#define MXC_S_WUT_CTRL_PRES_DIV8
Definition: wut_regs.h:178
void MXC_WUT_Shutdown(void)
Shutdown timer module clock.
@ MXC_WUT_PRES_4096
Divide input clock by 2048.
Definition: wut.h:75
int MXC_WUT_GetTime(uint32_t ticks, uint32_t *time, mxc_wut_unit_t *units)
Convert timer ticks to real time.
@ MXC_WUT_PRES_512
Divide input clock by 256.
Definition: wut.h:72
@ MXC_WUT_MODE_CONTINUOUS
Wakeup Timer Mode ONESHOT.
Definition: wut.h:83
#define MXC_S_WUT_CTRL_PRES_DIV2
Definition: wut_regs.h:174
@ MXC_WUT_PRES_2048
Divide input clock by 1024.
Definition: wut.h:74
uint32_t MXC_WUT_GetCount(void)
Get the timer count.
@ MXC_WUT_UNIT_MICROSEC
Definition: wut.h:91
@ MXC_WUT_PRES_16
Divide input clock by 8.
Definition: wut.h:67
void MXC_WUT_IntClear(void)
Clear the timer interrupt.