| ISF 2.1 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions
BMTimer1.c File Reference

This TimerUnit component provides a low level API for unified hardware access across various timer devices using the Prescaler-Counter-Compare-Capture timer structure. More...

`#include "ISFBusManager1.h"`
`#include "BMTimer1.h"`
`#include "mqxlite.h"`
`#include "mqxlite_prv.h"`
`#include "IO_Map.h"`
Include dependency graph for BMTimer1.c:

Go to the source code of this file.

## Data Structures
struct | BMTimer1_TDeviceData

## Macros
#define | AVAILABLE_EVENTS_MASK (LDD_TEventMask)(LDD_TIMERUNIT_ON_COUNTER_RESTART)

## Typedefs
typedef BMTimer1_TDeviceData * | BMTimer1_TDeviceDataPtr

## Functions
LDD_TDeviceData * | BMTimer1_Init (LDD_TUserData *UserDataPtr)
| Initializes the device. Allocates memory for the device data structure, allocates interrupt vectors and sets interrupt priority, sets pin routing, sets timing, etc. If the property ["Enable in init. code"] is set to "yes" value then the device is also enabled (see the description of the [Enable] method). In this case the [Enable] method is not necessary and needn't to be generated. This method can be called only once. Before the second call of Init the [Deinit] must be called first. More...
void | BMTimer1_Deinit (LDD_TDeviceData *DeviceDataPtr)
| Deinitializes the device. Switches off the device, frees the device data structure memory, interrupts vectors, etc. More...
LDD_TError | BMTimer1_Enable (LDD_TDeviceData *DeviceDataPtr)
| Enables the component - it starts the signal generation. Events may be generated (see SetEventMask). The method is not available if the counter can't be disabled/enabled by HW. More...
LDD_TError | BMTimer1_Disable (LDD_TDeviceData *DeviceDataPtr)
| Disables the component - it stops signal generation and events calling. The method is not available if the counter can't be disabled/enabled by HW. More...
LDD_TError | BMTimer1_SetPeriodTicks (LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType Ticks)
| The method sets timer re-initialization period (in timer ticks). This method is available only if the property ["Counter restart"] is switched to 'on-match' value. More...
LDD_TError | BMTimer1_GetPeriodTicks (LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType *TicksPtr)
| Returns the number of counter ticks before re-initialization. See also method [SetPeriodTicks]. This method is available only if the property ["Counter restart"] is switched to 'on-match' value. More...
LDD_TError | BMTimer1_ResetCounter (LDD_TDeviceData *DeviceDataPtr)
| Resets counter. If counter is counting up then it is set to zero. If counter is counting down then counter is updated to the reload value. The method is not available if HW doesn't allow resetting of the counter. More...
BMTimer1_TValueType | BMTimer1_GetCounterValue (LDD_TDeviceData *DeviceDataPtr)
| Returns the content of counter register. This method can be used both if counter is enabled and if counter is disabled. The method is not available if HW doesn't allow reading of the counter. More...
void | BMTimer1_Interrupt (LDD_RTOS_TISRParameter _isrParameter)

## Detailed Description

This TimerUnit component provides a low level API for unified hardware access across various timer devices using the Prescaler-Counter-Compare-Capture timer structure.

Version
  01.11

Definition in file BMTimer1.c.

- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.