CMSIS Timer Driver Function Documentation
TIMER_GetVersion
ARM_DRIVER_VERSION TIMER_GetVersion()
Location: Driver_Timer.c:21
TIMER_Initialize
int32_t TIMER_Initialize(TIMER_SignalEvent_t cb)
Location: Driver_Timer.c:22
Parameters
Direction | Name | Description |
---|---|---|
in |
cb |
Pointer to TIMER_SignalEvent |
TIMER_Configure
int32_t TIMER_Configure(TIMER_SEL_t sel, const TIMER_CFG_t * cfg)
Location: Driver_Timer.c:23
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer to be configured (TIMER_SEL_t) |
in |
cfg |
Pointer to TIMER_CFG_t |
TIMER_SetInterruptPriority
int32_t TIMER_SetInterruptPriority(TIMER_SEL_t sel, const TIMER_PRI_CFG_t * cfg)
Location: Driver_Timer.c:24
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer to be configured (TIMER_SEL_t) |
in |
cfg |
Pointer to TIMER_PRI_CFG_t |
TIMER_Start
int32_t TIMER_Start(TIMER_SEL_t sel)
Location: Driver_Timer.c:25
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer number to be started (TIMER_SEL_t) |
TIMER_Stop
int32_t TIMER_Stop(TIMER_SEL_t sel)
Location: Driver_Timer.c:26
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer number to be stopped (TIMER_SEL_t) |
TIMER_SetValue
int32_t TIMER_SetValue(TIMER_SEL_t sel, uint32_t val)
Location: Driver_Timer.c:27
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer value to be read (TIMER_SEL_t) |
in |
val |
Timer value to be set |
TIMER_GetValue
uint32_t TIMER_GetValue(TIMER_SEL_t sel)
Location: Driver_Timer.c:29
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer value to be read (TIMER_SEL_t) |
Return
TIMER_GetValueCapture
uint32_t TIMER_GetValueCapture(TIMER_SEL_t sel)
Location: Driver_Timer.c:30
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer value to be read (TIMER_SEL_t) |
Return
TIMER_GetSysTickState
uint32_t TIMER_GetSysTickState()
Location: Driver_Timer.c:31
Return
TIMER_SignalEvent
void TIMER_SignalEvent(uint32_t event)
Location: Driver_Timer.c:33
Parameters
Direction | Name | Description |
---|---|---|
in |
event |
Notification mask |
Return
TIMER_SetGPIOInterrupt
int32_t TIMER_SetGPIOInterrupt(TIMER_SEL_t sel)
Location: Driver_Timer.c:28
Parameters
Direction | Name | Description |
---|---|---|
in |
sel |
Timer value to be read (TIMER_SEL_t) |