CMSIS Timer Driver Function Documentation

 

TIMER_GetVersion

ARM_DRIVER_VERSION TIMER_GetVersion()

 

Get driver version.

 

Location: Driver_Timer.c:21

 

 

TIMER_Initialize

int32_t TIMER_Initialize(TIMER_SignalEvent_t cb)

 

Initialize Timer driver with default configuration.

 

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)

 

Configure particular Timer.

 

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)

 

Configure the Timer interrupt priority.

 

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)

 

Starts the Timer.

 

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)

 

Stops the Timer.

 

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)

 

Sets the timeout / reload value of the selected Timer.

 

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

 


Return


execution_status of error status

 

TIMER_GetValue

uint32_t TIMER_GetValue(TIMER_SEL_t sel)

 

Returns the current value of Timer.

 

Location: Driver_Timer.c:29

 

Parameters

Direction Name Description

in

sel

Timer value to be read (TIMER_SEL_t)

 


Return


Timer value or 0 if Timer was not enabled

 

TIMER_GetValueCapture

uint32_t TIMER_GetValueCapture(TIMER_SEL_t sel)

 

Returns the current value of Timer.

 

Location: Driver_Timer.c:30

 

Parameters

Direction Name Description

in

sel

Timer value to be read (TIMER_SEL_t)

 


Return


Timer capture value or 0 if Timer was not enabled

 

TIMER_GetSysTickState

uint32_t TIMER_GetSysTickState()

 

Returns 1 if SysTick has already reached 0.

 

Location: Driver_Timer.c:31

 


Return


SysTick status or 0 if SysTick was not enabled

 

TIMER_SignalEvent

void TIMER_SignalEvent(uint32_t event)

 

Signal Timer events.

 

Location: Driver_Timer.c:33

 

Parameters

Direction Name Description

in

event

Notification mask

 


Return


none

 

TIMER_SetGPIOInterrupt

int32_t TIMER_SetGPIOInterrupt(TIMER_SEL_t sel)

 

Set GPIO interrupt capture status.

 

Location: Driver_Timer.c:28

 

Parameters

Direction Name Description

in

sel

Timer value to be read (TIMER_SEL_t)