EDF - OnePIC MCU  v1.1.0
Timers
Collaboration diagram for Timers:

Functions

void EDF_TMR_ClockSourceSelect (TMR_MODULE_ID index, EDF_TMR_CLOCK_SOURCE source)
 selects whether or not the source will be internal or external
void EDF_TMR_StopInIdleDisable (TMR_MODULE_ID index)
 disables the timer source
void EDF_TMR_GateDisable (TMR_MODULE_ID index)
 disables the timer's gate if used
void EDF_TMR_PrescalerSet (TMR_MODULE_ID index, EDF_TMR_PRESCALE prescaler)
 sets the prescaler for the timer
void EDF_TMR_Start (TMR_MODULE_ID index)
 starts te timer
void EDF_TMR_Stop (TMR_MODULE_ID index)
 stops the timer
void EDF_TMR_CounterSet (TMR_MODULE_ID index, uint16_t value)
 loads the respective period register (PR) register

Function Documentation

void EDF_TMR_ClockSourceSelect ( TMR_MODULE_ID  index,
EDF_TMR_CLOCK_SOURCE  source 
)

selects whether or not the source will be internal or external

Parameters:
indexdetermines the source of the timer
sourcewhat is to be used?

Definition at line 21 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function:

void EDF_TMR_CounterSet ( TMR_MODULE_ID  index,
uint16_t  value 
)

loads the respective period register (PR) register

Parameters:
indextimer to use
valueperiod register to load

Definition at line 141 of file OnePIC_8bit_timer.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void EDF_TMR_GateDisable ( TMR_MODULE_ID  index)

disables the timer's gate if used

Parameters:
indexsource to disable their gate

Definition at line 53 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function:

void EDF_TMR_PrescalerSet ( TMR_MODULE_ID  index,
EDF_TMR_PRESCALE  prescaler 
)

sets the prescaler for the timer

Parameters:
indextimer to edit
prescalersets the prescaler for the respective timer

Definition at line 68 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function:

void EDF_TMR_Start ( TMR_MODULE_ID  index)

starts te timer

Parameters:
indextimer to start

Definition at line 94 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function:

void EDF_TMR_Stop ( TMR_MODULE_ID  index)

stops the timer

Parameters:
indextimer to stop

Definition at line 117 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function:

void EDF_TMR_StopInIdleDisable ( TMR_MODULE_ID  index)

disables the timer source

Parameters:
indexsource to disable

Definition at line 39 of file OnePIC_8bit_timer.c.

Here is the caller graph for this function: