47 #include "mxc_device.h" 208 int MXC_WUT_GetTime(uint32_t ticks, uint32_t *time, mxc_wut_unit_t *units);
#define MXC_S_WUT_CN_PRES_DIV64
Definition: wut_regs.h:170
void MXC_WUT_Enable(void)
Enable the timer.
uint32_t MXC_WUT_GetCount(void)
Get the timer count.
Divide input clock by 256.
Definition: wut.h:73
#define MXC_V_WUT_CN_TMODE_COUNTER
Definition: wut_regs.h:142
void MXC_WUT_RestoreBBClock(uint32_t dbbFreq)
Restore the DBB clock with the stored count and snapshot values.
Divide input clock by 32.
Definition: wut.h:70
Wakeup Timer Mode CAPTURE.
Definition: wut.h:88
Divide input clock by 1.
Definition: wut.h:65
#define MXC_V_WUT_CN_TMODE_PWM
Definition: wut_regs.h:144
int MXC_WUT_GetTicks(uint32_t time, mxc_wut_unit_t units, uint32_t *ticks)
Convert real time to timer ticks.
Wakeup Timer Mode ONESHOT.
Definition: wut.h:84
void MXC_WUT_Store(void)
Store the count and snapshot values.
void MXC_WUT_SetCount(uint32_t cnt)
Set the timer count.
Divide input clock by 512.
Definition: wut.h:74
#define MXC_S_WUT_CN_PRES_DIV4
Definition: wut_regs.h:162
void MXC_WUT_SetCompare(uint32_t cmp_cnt)
Set the timer compare count.
uint32_t MXC_WUT_GetCapture(void)
Get the timer capture count.
Divide input clock by 8.
Definition: wut.h:68
uint32_t MXC_WUT_GetSleepTicks(void)
Get the difference between the stored counter value and the current counter value.
#define MXC_V_WUT_CN_TMODE_CAPTURECOMPARE
Definition: wut_regs.h:152
Wakeup Timer Mode GATED.
Definition: wut.h:90
void MXC_WUT_Edge(void)
Wait for an edge of the WUT count register.
mxc_wut_unit_t
Wakeup Timer units of time enumeration.
Definition: wut.h:96
Divide input clock by 2.
Definition: wut.h:66
#define MXC_S_WUT_CN_PRES_DIV128
Definition: wut_regs.h:172
mxc_wut_mode_t
Wakeup Timer modes.
Definition: wut.h:82
#define MXC_V_WUT_CN_TMODE_CAPTURE
Definition: wut_regs.h:146
#define MXC_V_WUT_CN_TMODE_GATED
Definition: wut_regs.h:150
#define MXC_V_WUT_CN_TMODE_ONESHOT
Definition: wut_regs.h:138
#define MXC_S_WUT_CN_PRES_DIV1
Definition: wut_regs.h:158
uint32_t MXC_WUT_GetCompare(void)
Get the timer compare count.
Wakeup Timer Configuration.
Definition: wut.h:106
void MXC_WUT_Config(const mxc_wut_cfg_t *cfg)
Configure the timer.
#define MXC_S_WUT_CN_PRES_DIV16
Definition: wut_regs.h:166
void MXC_WUT_IntClear(void)
Clear the timer interrupt.
void MXC_WUT_Init(mxc_wut_pres_t pres)
Initialize timer module clock.
Divide input clock by 64.
Definition: wut.h:71
Wakeup Timer Mode COMPARE.
Definition: wut.h:89
Wakeup Timer Mode COUNTER.
Definition: wut.h:86
Wakeup Timer Mode CONTINUOUS.
Definition: wut.h:85
uint32_t cmp_cnt
Desired timer mode.
Definition: wut.h:108
Divide input clock by 1024.
Definition: wut.h:75
mxc_wut_pres_t
Wakeup Timer prescaler values.
Definition: wut.h:63
Divide input clock by 16.
Definition: wut.h:69
void MXC_WUT_Shutdown(void)
Shutdown timer module clock.
Wakeup Timer Mode PWM.
Definition: wut.h:87
int MXC_WUT_GetTime(uint32_t ticks, uint32_t *time, mxc_wut_unit_t *units)
Convert timer ticks to real time.
#define MXC_V_WUT_CN_TMODE_COMPARE
Definition: wut_regs.h:148
#define MXC_F_WUT_CN_PRES3
Definition: wut_regs.h:181
#define MXC_S_WUT_CN_PRES_DIV32
Definition: wut_regs.h:168
Divide input clock by 4.
Definition: wut.h:67
void MXC_WUT_Disable(void)
Disable the timer.
void MXC_WUT_Delay_MS(uint32_t waitMs)
Delays for the given number of milliseconds.
#define MXC_S_WUT_CN_PRES_DIV8
Definition: wut_regs.h:164
Divide input clock by 2048.
Definition: wut.h:76
#define MXC_V_WUT_CN_TMODE_CONTINUOUS
Definition: wut_regs.h:140
uint32_t MXC_WUT_IntStatus(void)
Get the timer interrupt status.
Divide input clock by 128.
Definition: wut.h:72
#define MXC_S_WUT_CN_PRES_DIV2
Definition: wut_regs.h:160