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 the timer
void EDF_TMR_Period16BitSet (TMR_MODULE_ID index, uint16_t PeriodValue)
 sets the 16bit timer used for TMR1
void EDF_TMR_Stop (TMR_MODULE_ID index)
 stops the timer
void EDF_TMR_Counter16BitSet (TMR_MODULE_ID index, uint16_t value)
 set the 16bit timer (TMR1)

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 23 of file OnePIC_16bit_timer.c.

void EDF_TMR_Counter16BitSet ( TMR_MODULE_ID  index,
uint16_t  value 
)

set the 16bit timer (TMR1)

Parameters:
indextimer to stop
valuetimer value to assign to TMR1

Definition at line 130 of file OnePIC_16bit_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 52 of file OnePIC_16bit_timer.c.

void EDF_TMR_Period16BitSet ( TMR_MODULE_ID  index,
uint16_t  PeriodValue 
)

sets the 16bit timer used for TMR1

Parameters:
indextimer to start
PeriodValuePR value to assign

Definition at line 99 of file OnePIC_16bit_timer.c.

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_16bit_timer.c.

void EDF_TMR_Start ( TMR_MODULE_ID  index)

starts the timer

starts te timer

Parameters:
indextimer to start

Definition at line 83 of file OnePIC_16bit_timer.c.

void EDF_TMR_Stop ( TMR_MODULE_ID  index)

stops the timer

Parameters:
indextimer to stop

Definition at line 114 of file OnePIC_16bit_timer.c.

void EDF_TMR_StopInIdleDisable ( TMR_MODULE_ID  index)

disables the timer source

Parameters:
indexsource to disable

Definition at line 37 of file OnePIC_16bit_timer.c.