5 #ifndef __QM_AON_COUNTERS_H__
6 #define __QM_AON_COUNTERS_H__
9 #include "qm_soc_regs.h"
49 void (*callback)(
void *data);
194 const qm_aonc_context_t *
const ctx);
int qm_aonc_disable(const qm_aonc_t aonc)
Disable the Always-on Counter.
int qm_aonpt_clear(const qm_aonc_t aonc)
Clear the status of the Always-on Periodic Timer.
uint32_t count
Time to count down from in clock cycles.
void * callback_data
Callback data.
qm_aonpt_status_t
Always on counter status.
int qm_aonc_enable(const qm_aonc_t aonc)
Enable the Always-on Counter.
int qm_aonpt_get_status(const qm_aonc_t aonc, qm_aonpt_status_t *const status)
Get the current status of an Always-on Periodic Timer.
int qm_aonc_get_value(const qm_aonc_t aonc, uint32_t *const val)
Get the current value of the Always-on Counter.
int qm_aonpt_save_context(const qm_aonc_t aonc, qm_aonc_context_t *const ctx)
Save the Always-on Periodic Timer context.
int qm_aonpt_get_value(const qm_aonc_t aonc, uint32_t *const val)
Get the current value of the Always-on Periodic Timer.
bool int_en
Enable/disable the interrupts.
QM Always-on Periodic Timer configuration type.
int qm_aonpt_reset(const qm_aonc_t aonc)
Reset the Always-on Periodic Timer back to the configured value.
int qm_aonpt_set_config(const qm_aonc_t aonc, const qm_aonpt_config_t *const cfg)
Set the Always-on Periodic Timer configuration.
int qm_aonpt_restore_context(const qm_aonc_t aonc, const qm_aonc_context_t *const ctx)
Restore the Always-on Periodic Timer context.
qm_aonc_t
Number of Always-on counter controllers.