119 const uint16_t decFactor)
126 ((uint32_t)(decFactor & 0xFF00) << 8) | (uint32_t)(decFactor & 0x00FF);
142 timer->
TCR |= (uint16_t)mode;
149 const uint16_t preScaler)
156 ((uint32_t)(preScaler & 0xFF00) << 8) | (uint32_t)(preScaler & 0x00FF);
Defines the timer (TIMER) object.
#define TIMER_TCR_TIF_BITS
Defines the location of the TIF bits in the TCR register.
void TIMER_clearFlag(TIMER_Handle timerHandle)
Clears the timer (TIMER) flag.
volatile uint16_t TCR
Timer Control Register.
TIMER_Status_e
Enumeration to define the timer (TIMER) status.
struct _TIMER_Obj_ * TIMER_Handle
Defines the timer (TIMER) handle.
#define TIMER_TCR_FREESOFT_BITS
Defines the location of the FREESOFT bits in the TCR register.
Contains public interface to various functions related to the timer (TIMER) object.
void TIMER_disableInt(TIMER_Handle timerHandle)
Disables the timer (TIMER) interrupt.
void TIMER_enableInt(TIMER_Handle timerHandle)
Enables the timer (TIMER) interrupt.
#define TIMER_TCR_TIE_BITS
Defines the location of the TIE bits in the TCR register.
void TIMER_setDecimationFactor(TIMER_Handle timerHandle, const uint16_t decFactor)
Sets the timer (TIMER) decimation factor.
TIMER_Status_e TIMER_getStatus(TIMER_Handle timerHandle)
Gets the timer (TIMER) status.
void TIMER_setEmulationMode(TIMER_Handle timerHandle, const TIMER_EmulationMode_e mode)
Sets the timer (TIMER) emulation mode.
volatile uint32_t TPR
Timer Prescaler Register.
void TIMER_setPreScaler(TIMER_Handle timerHandle, const uint16_t preScaler)
Sets the timer (TIMER) prescaler.
TIMER_EmulationMode_e
Enumeration to define the timer (TIMER) emulation mode.
TIMER_Handle TIMER_init(void *pMemory, const size_t numBytes)
Initializes the timer (TIMER) object handle.