Hilscher netX microcontroller driver
V0.0.5.0
Documentation of the netX driver package
|
Timer peripheral module driver. More...
#include "netx_drv.h"
Go to the source code of this file.
Macros | |
#define | DRV_HANDLE_CHECK(handle) |
Enumerations | |
enum | { DRV_TIM_IRQ_GPIOTIM0 = 0x00u, DRV_TIM_IRQ_GPIOTIM1 = 0x01u, DRV_TIM_IRQ_GPIOTIM2 = 0x02u, DRV_TIM_IRQ_TIMER0 = 0x03u, DRV_TIM_IRQ_TIMER1 = 0x04u, DRV_TIM_IRQ_TIMER2 = 0x05u, DRV_TIM_IRQ_SYSTIME_COMPARE = 0x06u, DRV_TIM_IRQ_SYSTICK = 0x07u } |
Functions | |
DRV_STATUS_E | DRV_TIM_Init (DRV_TIM_HANDLE_T *const ptTim) |
DRV_STATUS_E | DRV_TIM_DeInit (DRV_TIM_HANDLE_T *const ptTim) |
DRV_STATUS_E | DRV_TIM_Start (DRV_TIM_HANDLE_T *const ptTim) |
DRV_STATUS_E | DRV_TIM_Stop (DRV_TIM_HANDLE_T *const ptTim) |
DRV_STATUS_E | DRV_TIM_Pause (DRV_TIM_HANDLE_T *const ptTim) |
DRV_STATUS_E | DRV_TIM_Wait (DRV_TIM_HANDLE_T *const ptTim, uint32_t ulTickCnt) |
DRV_STATUS_E | DRV_TIM_IRQAttach (DRV_TIM_HANDLE_T *const ptTim, DRV_CALLBACK_F pfnUserClb, void *pvUser) |
DRV_STATUS_E | DRV_TIM_GetState (DRV_TIM_HANDLE_T *const ptTim, DRV_TIM_STATE_E *const peState) |
DRV_STATUS_E | DRV_TIM_GetValue (DRV_TIM_HANDLE_T *const ptTim, uint32_t *const ptSoftwareValue, uint32_t *const ptHardwareValue) |
DRV_STATUS_E | DRV_TIM_SetPreload (DRV_TIM_HANDLE_T *const ptTim, DRV_TIM_PRELOAD_VALUE_E const tCounterValue) |
void | GPIOTIM0_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_GPIOTIM0_Callback (void) |
This is the callback of the GPIOTIM 0 IRQ. More... | |
void | GPIOTIM1_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_GPIOTIM1_Callback (void) |
This is the callback of the GPIOTIM 1 IRQ. More... | |
void | GPIOTIM2_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_GPIOTIM2_Callback (void) |
This is the callback of the GPIOTIM 2 IRQ. More... | |
void | TIM0_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_TIMER0_Callback (void) |
This is the callback of the TIMER 0 IRQ. More... | |
void | TIM1_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_TIMER1_Callback (void) |
This is the callback of the TIMER 1 IRQ. More... | |
void | TIM2_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_TIMER2_Callback (void) |
This is the callback of the TIMER 2 IRQ. More... | |
void | SYSTIME_IRQHandler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_SYSTIME_COMPARE_Callback (void) |
This is the callback of the SYSTIME COMPARE IRQ. More... | |
void | SysTick_Handler (void) |
This function handles interrupts requests. More... | |
void | DRV_TIM_ARMSYSTICK_Callback (void) |
This is the callback of the SYSTEM TICK IRQ. More... | |
Variables | |
static IRQn_Type const | aulIRQnTable [DRV_TIM_IRQ_COUNT] = DRV_TIM_IRQ_LIST |
Table of the IRQ vector numbers. More... | |
static DRV_CALLBACK_F | s_apTIMCallbackTable [DRV_TIM_IRQ_COUNT] = { 0 } |
Used for mapping the handle to an interrupt. More... | |
static void * | s_apTIMCallbackHandleTable [DRV_TIM_IRQ_COUNT] = { 0 } |
static DRV_TIM_HANDLE_T * | s_apTIMCallbackDriverHandleTable [DRV_TIM_IRQ_COUNT] = { 0 } |
static volatile uint32_t | s_apTIMIrqCntr [DRV_TIM_IRQ_COUNT] = { 0 } |
Timer peripheral module driver.
This file provides firmware functions to manage the following functionalities of timer peripheral:
Definition in file netx_drv_tim.c.