Function definitions for Timer driver.
Functions | |
| void | utimer_applyConfig (utimer_instance_t *inst) |
| Apply the software configuration to the hardware. | |
| void | utimer_clearValue (utimer_instance_t *inst) |
| Clear Timer Value to zero. | |
UserTimer (Get Functions) | |
Read values from the Timer hardware registers. | |
| u32 | utimer_getConfig (utimer_instance_t *inst) |
| Get stored Timer Configuration. | |
| u32 | utimer_getLimit (utimer_instance_t *inst) |
| Get stored Timer Limit (Reload Value). | |
| u32 | utimer_getValue (utimer_instance_t *inst) |
| Get current Timer Value. | |
| u32 | utimer_getPrescalerValue (utimer_instance_t *inst) |
| Get stored Prescaler Value. | |
UserTimer (Set Functions) | |
Write values to the Timer registers.
| |
| u32 | utimer_setConfig (utimer_instance_t *inst, u32 value) |
| Set Timer Configuration. | |
| u32 | utimer_setPrescalerValue (utimer_instance_t *inst, u32 value) |
| Set Prescaler Value. | |
| u32 | utimer_setLimit (utimer_instance_t *inst, u32 value) |
| Get stored Timer Limit (Reload Value). | |
| void utimer_applyConfig | ( | utimer_instance_t * | inst | ) |
#include <timer.h>
Apply the software configuration to the hardware.
Writes all values stored in the utimer_instance to the corresponding Timer hardware registers.
| inst | Pointer to Timer instance. |
Writes all values stored in the utimer_instance to the corresponding Timer hardware registers.
| void utimer_clearValue | ( | utimer_instance_t * | inst | ) |
| u32 utimer_getConfig | ( | utimer_instance_t * | inst | ) |
| u32 utimer_getLimit | ( | utimer_instance_t * | inst | ) |
| u32 utimer_getPrescalerValue | ( | utimer_instance_t * | inst | ) |
| u32 utimer_getValue | ( | utimer_instance_t * | inst | ) |
| u32 utimer_setConfig | ( | utimer_instance_t * | inst, |
| u32 | value ) |
| u32 utimer_setLimit | ( | utimer_instance_t * | inst, |
| u32 | value ) |