Hilscher netX microcontroller driver  V0.0.5.0
Documentation of the netX driver package
netx_drv_tim.h File Reference

Header file of timer driver. More...

#include "netx_drv.h"
Include dependency graph for netx_drv_tim.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  DRV_TIM_DEVICE_U
 Union of the possible timer device pointers. More...
 
struct  DRV_TIM_CONFIGURATION_T
 Timer base Configuration Structure definition. More...
 
struct  DRV_TIM_HANDLE_T
 Timer Base Handle Structure definition. More...
 

Macros

#define DRV_TIM_CLOCK_RATE   SystemCoreClock
 

Enumerations

enum  DRV_TIM_PRELOAD_VALUE_E {
  DRV_TIM_PRELOAD_VALUE_1Hz = 100000000ul,
  DRV_TIM_PRELOAD_VALUE_1s = 100000000ul,
  DRV_TIM_PRELOAD_VALUE_2Hz = 50000000ul,
  DRV_TIM_PRELOAD_VALUE_500ms = 50000000ul,
  DRV_TIM_PRELOAD_VALUE_10Hz = 10000000ul,
  DRV_TIM_PRELOAD_VALUE_100ms = 10000000ul,
  DRV_TIM_PRELOAD_VALUE_100Hz = 1000000ul,
  DRV_TIM_PRELOAD_VALUE_10ms = 1000000ul,
  DRV_TIM_PRELOAD_VALUE_1KHz = 100000ul,
  DRV_TIM_PRELOAD_VALUE_1ms = 100000ul,
  DRV_TIM_PRELOAD_VALUE_2KHz = 50000ul,
  DRV_TIM_PRELOAD_VALUE_500us = 50000ul,
  DRV_TIM_PRELOAD_VALUE_10KHz = 10000ul,
  DRV_TIM_PRELOAD_VALUE_100us = 10000ul,
  DRV_TIM_PRELOAD_VALUE_100KHz = 1000ul,
  DRV_TIM_PRELOAD_VALUE_10us = 1000ul,
  DRV_TIM_PRELOAD_VALUE_1MHz = 100ul,
  DRV_TIM_PRELOAD_VALUE_1us = 100ul,
  DRV_TIM_PRELOAD_VALUE_2MHz = 50ul,
  DRV_TIM_PRELOAD_VALUE_500ns = 50ul,
  DRV_TIM_PRELOAD_VALUE_10MHz = 10ul,
  DRV_TIM_PRELOAD_VALUE_100ns = 10ul,
  DRV_TIM_PRELOAD_VALUE_100MHz = 1ul,
  DRV_TIM_PRELOAD_VALUE_10ns = 1ul,
  DRV_TIM_PRELOAD_VALUE_DEFAULT = 0ul
}
 Time structure of the timer driver. More...
 
enum  DRV_TIM_STATE_E {
  DRV_TIM_STATE_DEFAULT = 0x00ul,
  DRV_TIM_STATE_STOPPED = 0x01ul,
  DRV_TIM_STATE_PAUSED = 0x02ul,
  DRV_TIM_STATE_RUNNING = 0x03ul,
  DRV_TIM_STATE_TIMEOUT = 0x04ul,
  DRV_TIM_STATE_ERROR = 0x05ul
}
 Enumeration of the timer State. More...
 
enum  DRV_TIM_EXTERNAL_EVENT_MODE_E {
  DRV_TIM_EXTERNAL_EVENT_MODE_DEFAULT = 0x00ul,
  DRV_TIM_EXTERNAL_EVENT_MODE_EXTERNAL_EVENTS = 0x01ul,
  DRV_TIM_EXTERNAL_EVENT_MODE_WATCHDOG = 0x02ul,
  DRV_TIM_EXTERNAL_EVENT_MODE_AUTO_RUN = 0x03ul
}
 Enumeration of the external event mode. More...
 
enum  DRV_TIM_EXTERNAL_EVENT_TRIGGER_E {
  DRV_TIM_EXTERNAL_EVENT_MODE_HIGH_LEVEL = 0x00ul,
  DRV_TIM_EXTERNAL_EVENT_MODE_RISING_EDGE = 0x01ul
}
 Enumeration defines the kind of external event signal. More...
 
enum  DRV_TIM_SYSTIME_REFERENCE_E {
  DRV_TIM_SYSTIME_REFERENCE_DEFAULT = 0x00ul,
  DRV_TIM_SYSTIME_REFERENCE_COM = 0x10ul,
  DRV_TIM_SYSTIME_REFERENCE_COM_UC = 0x11ul,
  DRV_TIM_SYSTIME_REFERENCE_APP = 0x12ul,
  DRV_TIM_SYSTIME_REFERENCE_RESERVED = 0x13ul,
  DRV_TIM_SYSTIME_REFERENCE_MIN = DRV_TIM_SYSTIME_REFERENCE_COM
}
 The time base that is used for the timer. More...
 
enum  DRV_TIM_COUNTING_MODE_E {
  DRV_TIM_COUNTING_MODE_ONCE = 0x00ul,
  DRV_TIM_COUNTING_MODE_CONTINUOUS = 0x01ul,
  DRV_TIM_COUNTING_MODE_COMPARE = 0x02ul,
  DRV_TIM_COUNTING_MODE_RESERVED = 0x03ul
}
 Enumeration of the available counting modes. More...
 
enum  DRV_TIM_SYMMETRIC_E {
  DRV_TIM_SYMMETRIC_SAWTOOTH = 0x00ul,
  DRV_TIM_SYMMETRIC_TRIANGLE = 0x01ul
}
 Enumeration of the counting symmetries available. More...
 

Functions

void DRV_TIM_GPIOTIM0_Callback (void)
 This is the callback of the GPIOTIM 0 IRQ. More...
 
void DRV_TIM_GPIOTIM1_Callback (void)
 This is the callback of the GPIOTIM 1 IRQ. More...
 
void DRV_TIM_GPIOTIM2_Callback (void)
 This is the callback of the GPIOTIM 2 IRQ. More...
 
void DRV_TIM_TIMER0_Callback (void)
 This is the callback of the TIMER 0 IRQ. More...
 
void DRV_TIM_TIMER1_Callback (void)
 This is the callback of the TIMER 1 IRQ. More...
 
void DRV_TIM_TIMER2_Callback (void)
 This is the callback of the TIMER 2 IRQ. More...
 
void DRV_TIM_SYSTIME_COMPARE_Callback (void)
 This is the callback of the SYSTIME COMPARE IRQ. More...
 
void DRV_TIM_ARMSYSTICK_Callback (void)
 This is the callback of the SYSTEM TICK IRQ. More...
 

Detailed Description

Header file of timer driver.

Revision
4646
Date
2018-12-19 08:47:36 +0100 (Mi, 19 Dez 2018)
Note
Exclusion of Liability for this demo software: The following software is intended for and must only be used for reference and in an evaluation laboratory environment. It is provided without charge and is subject to alterations. There is no warranty for the software, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the software "as is" without warranty of any kind, either expressed or implied. Please refer to the Agreement in README_DISCLAIMER.txt, provided together with this file! By installing or otherwise using the software, you accept the terms of this Agreement. If you do not agree to the terms of this Agreement, then do not install or use the Software!

Definition in file netx_drv_tim.h.