5 #ifndef __QM_PIC_TIMER_H__
6 #define __QM_PIC_TIMER_H__
9 #include "qm_soc_regs.h"
38 void (*callback)(
void *data);
int qm_pic_timer_set(const uint32_t count)
Set the current count value of the PIC timer.
qm_pic_timer_mode_t
PIC timer mode type.
int qm_pic_timer_restore_context(const qm_pic_timer_context_t *const ctx)
Restore PIC Timer peripheral's context.
bool int_en
Interrupt enable.
int qm_pic_timer_get(uint32_t *const count)
Get the current count value of the PIC timer.
qm_pic_timer_mode_t mode
Operation mode.
int qm_pic_timer_set_config(const qm_pic_timer_config_t *const cfg)
Set the PIC timer configuration.
PIC timer configuration type.
int qm_pic_timer_save_context(qm_pic_timer_context_t *const ctx)
Save PIC Timer peripheral's context.
void * callback_data
Callback user data.