software_APIs  1.0.0
Functions
timer0.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void timer0_configureOneShot (unsigned int count)
 
void timer0_configurePeriodic (unsigned int count)
 
void timer0_enable (bool is_enable)
 
unsigned int timer0_readValue ()
 

Function Documentation

◆ timer0_configureOneShot()

void timer0_configureOneShot ( unsigned int  count)

Start Timer in oneshot countdown mode start value is count

Parameters
countstart value in the counter > 0

◆ timer0_configurePeriodic()

void timer0_configurePeriodic ( unsigned int  count)

Start counter in periodic countdown mode start value is count

Timer will roll over to the count value when it reaches 0

Parameters
countstart value in the counter > 0

◆ timer0_enable()

void timer0_enable ( bool  is_enable)

Enable or Disable timer0

Parameters
is_enablewhen 1 (true) timer0 is enable (start counting), 0 (false) timer0 is disabled

◆ timer0_readValue()

unsigned int timer0_readValue ( )

Get timer current value