12 #ifndef __TIMER_DEVICE_H__
13 #define __TIMER_DEVICE_H__
char * Name
Definition: timer_device.h:40
void(* LoadCounter)(uint32_t cnt)
Definition: timer_device.h:36
void * SFRS
Definition: timer_device.h:41
int32_t Timer_devRegisterIRQ(Timer_Device_t *dev, void *cb)
Register interrupt handling function to a timer device.
Definition: timer_device.c:121
uint8_t Num
Definition: timer_device.h:38
const struct Timer_Device_t Timer_Device_t
A structure to represent timer device.
void(* timer_cb_func_t)(Timer_Device_Type *dev)
Definition: timer_device.h:20
A structure to represent timer device state.
Definition: timer_device.h:25
Timer_Device_t * Timer_devRequest(const char *name)
Request a Timer Device.
Definition: timer_device.c:189
int32_t Timer_devStart(Timer_Device_t *dev)
Start a timer.
Definition: timer_device.c:97
timer_cb_func_t cb_func
Definition: timer_device.h:26
int32_t Timer_devGetTick(Timer_Device_t *dev)
Get the tick counter of a timer device.
Definition: timer_device.c:161
uint32_t tick
Definition: timer_device.h:27
int32_t Timer_devUnregisterIRQ(Timer_Device_t *dev, void *cb)
Unregister interrupt handling function to a timer device.
Definition: timer_device.c:129
int32_t Timer_devClearTick(Timer_Device_t *dev)
Clear the tick counter of a timer interrupt.
Definition: timer_device.c:153
A structure to represent timer device.
Definition: timer_device.h:33
int32_t Timer_devSetMs(Timer_Device_t *dev, uint32_t ms)
Set timing interval of a timer.
Definition: timer_device.c:113
IRQn_Type IRQ
Definition: timer_device.h:37
enum IRQn IRQn_Type
The enumeration of Interrupt Number Assignments.
int32_t Timer_devDisableIRQ(Timer_Device_t *dev)
Disable the interrupt of a timer device.
Definition: timer_device.c:145
void(* Start)(void)
Definition: timer_device.h:34
int32_t Timer_devStop(Timer_Device_t *dev)
Stop a timer.
Definition: timer_device.c:105
int32_t Timer_devEnableIRQ(Timer_Device_t *dev)
Enable the interrupt of a timer device.
Definition: timer_device.c:137
void(* Stop)(void)
Definition: timer_device.h:35
Timer_State_t * State
Definition: timer_device.h:39