EDF - OnePIC MCU
v1.1.0
|
#include <stdint.h>
#include "Compiler.h"
Go to the source code of this file.
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 | |
enum | TMR_MODULE_ID_tag { TMR_0, TMR_1, TMR_2, TMR_4, TMR_6 } |
Contains ONLY timer related sources for the 8bit. More... | |
enum | EDF_TMR_CLOCK_SOURCE_tag { TMR_SOURCE_INS_CLK = 0, TMR_SOURCE_EXT_CLK = 1 } |
Contains the source of the clocks such as: More... | |
enum | EDF_TMR_PRESCALE_tag { TMR_PRESCALE_1_256 = 0x03, TMR_PRESCALE_1_64 = 0x02, TMR_PRESCALE_1_8 = 0x01, TMR_PRESCALE_1_1 = 0x00, TMR246_PRESCALE_1_64 = 0b11, TMR246_PRESCALE_1_16 = 0b10, TMR246_PRESCALE_1_4 = 0b01, TMR246_PRESCALE_1_1 = 0b00, TMR1_PRESCALE_1_8 = 0b11, TMR1_PRESCALE_1_4 = 0b10, TMR1_PRESCALE_1_2 = 0b01, TMR1_PRESCALE_1_1 = 0b00, TMR0_PRESCALE_1_256 = 0b111, TMR0_PRESCALE_1_128 = 0b110, TMR0_PRESCALE_1_64 = 0b101, TMR0_PRESCALE_1_32 = 0b100, TMR0_PRESCALE_1_16 = 0b011, TMR0_PRESCALE_1_8 = 0b010, TMR0_PRESCALE_1_4 = 0b001, TMR0_PRESCALE_1_2 = 0b000 } |
Contains all prescaler settings for All timers. More... | |
typedef enum TMR_MODULE_ID_tag | TMR_MODULE_ID |
typedef enum EDF_TMR_CLOCK_SOURCE_tag | EDF_TMR_CLOCK_SOURCE |
typedef enum EDF_TMR_PRESCALE_tag | EDF_TMR_PRESCALE |
Definition in file OnePIC_timer.h.
Contains the source of the clocks such as:
Definition at line 48 of file OnePIC_timer.h.
enum EDF_TMR_PRESCALE_tag |
Contains all prescaler settings for All timers.
Definition at line 92 of file OnePIC_timer.h.
enum TMR_MODULE_ID_tag |
Contains ONLY timer related sources for the 8bit.
Definition at line 26 of file OnePIC_timer.h.