Function definitions for Timer driver.
Functions | |
| void | timer_applyConfig (timer_instance_t *inst) |
| Apply the software configuration to the hardware. | |
| void | timer_clearValue (timer_instance_t *inst) |
| Clear Timer Value to zero. | |
UserTimer (Get Functions) | |
Read values from the Timer hardware registers. | |
| u32 | timer_getConfig (timer_instance_t *inst) |
| Get stored Timer Configuration. | |
| u32 | timer_getLimit (timer_instance_t *inst) |
| Get stored Timer Limit (Reload Value). | |
| u32 | timer_getValue (timer_instance_t *inst) |
| Get current Timer Value. | |
| u32 | timer_getPrescalerValue (timer_instance_t *inst) |
| Get stored Prescaler Value. | |
UserTimer (Set Functions) | |
Write values to the Timer registers.
| |
| u32 | timer_setConfig (timer_instance_t *inst, u32 value) |
| Set Timer Configuration. | |
| u32 | timer_setPrescalerValue (timer_instance_t *inst, u32 value) |
| Set Prescaler Value. | |
| u32 | timer_setLimit (timer_instance_t *inst, u32 value) |
| Get stored Timer Limit (Reload Value). | |
| void timer_applyConfig | ( | timer_instance_t * | inst | ) |
#include <timer.h>
Apply the software configuration to the hardware.
Writes all values stored in the timer_instance to the corresponding Timer hardware registers.
| inst | Pointer to Timer instance. |
Writes all values stored in the timer_instance to the corresponding Timer hardware registers.
| void timer_clearValue | ( | timer_instance_t * | inst | ) |
| u32 timer_getConfig | ( | timer_instance_t * | inst | ) |
| u32 timer_getLimit | ( | timer_instance_t * | inst | ) |
| u32 timer_getPrescalerValue | ( | timer_instance_t * | inst | ) |
| u32 timer_getValue | ( | timer_instance_t * | inst | ) |
| u32 timer_setConfig | ( | timer_instance_t * | inst, |
| u32 | value ) |
| u32 timer_setLimit | ( | timer_instance_t * | inst, |
| u32 | value ) |