ISF  2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
isf_fsl_TU_PEx.h
Go to the documentation of this file.
1 /*
2  * isf_fsl_TU_PEx.h
3  *
4  * Created on: Jun 17, 2014
5  * Author: B46330
6  */
7 
8 #ifndef ISF_FSL_TU_PEX_H_
9 #define ISF_FSL_TU_PEX_H_
10 #include "PE_Types.h"
11 #include "BMTimer1.h"
12 /**
13  * @brief This is the function pointer signature for Timer Unit initialization.
14  */
15 typedef LDD_TDeviceData* (*fnTUInit_t) (LDD_TUserData *UserDataPtr);
16 
17 /**
18  * @brief This is the function pointer signature for Timer Unit de-initialization.
19  */
20 typedef void (*fnTUDeinit_t) (LDD_TDeviceData *DeviceDataPtr);
21 
22 /**
23  * @brief This is the function pointer signature for Timer Unit enable.
24  */
25 typedef LDD_TError (*fnTUEnable_t) (LDD_TDeviceData *DeviceDataPtr);
26 
27 /**
28  * @brief This is the function pointer signature for Timer Unit disable.
29  */
30 typedef LDD_TError (*fnTUDisable_t) (LDD_TDeviceData *DeviceDataPtr);
31 
32 /**
33  * @brief This is the function pointer signature for setting the Timer Unit period.
34  */
35 typedef LDD_TError (*fnTUSetPeriodTicks_t) (LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType Ticks);
36 
37 /**
38  * @brief This is the the function pointer signature for retrieving the Timer Unit period.
39  */
40 typedef LDD_TError (*fnTUGetPeriodTicks_t) (LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType *TicksPtr);
41 
42 /**
43  * @brief This is the the function pointer signature for resetting the Timer Unit counter.
44  */
45 typedef LDD_TError (*fnTUResetCounter_t) (LDD_TDeviceData *DeviceDataPtr);
46 
47 /**
48  * @brief This is the the function pointer signature retrieving the Timer Unit counter.
49  */
50 typedef BMTimer1_TValueType (*fnTUGetCounterValue_t) (LDD_TDeviceData *DeviceDataPtr);
51 
52 /**
53  * @brief This structure contains Timer Unit LLD function pointers.
54  */
55 typedef struct {
56  fnTUInit_t fnTULDDInit; /*!< Initialize a Timer Unit LDD component.*/
57  fnTUDeinit_t fnTULDDDeint; /*!< De-initialize a Timer Unit LDD component.*/
58  fnTUEnable_t fnTULDDEnable; /*!< Enable a Timer Unit LDD component.*/
59  fnTUDisable_t fnTULDDDisable; /*!< Disable a Timer Unit LDD component.*/
60  fnTUSetPeriodTicks_t fnTULDDSetPeriod; /*!< Set a Timer Unit period.*/
61  fnTUGetPeriodTicks_t fnTULDDGetPeriod; /*!< Get the Timer Unit period.*/
62  fnTUResetCounter_t fnTULDDResetCounter; /*!< Reset the Timer Unit counter.*/
63  fnTUGetCounterValue_t fnTULDDGetCounter; /*!< Get the current value of the Timer Unit counter.*/
65 
66 extern const TU_instance_PEx_t TU_instance_tbl[];
67 
68 #endif /* ISF_FSL_TU_PEX_H_ */
69 
70 
71 
LDD_TError(* fnTUResetCounter_t)(LDD_TDeviceData *DeviceDataPtr)
This is the the function pointer signature for resetting the Timer Unit counter.
LDD_TError(* fnTUSetPeriodTicks_t)(LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType Ticks)
This is the function pointer signature for setting the Timer Unit period.
fnTUDisable_t fnTULDDDisable
const TU_instance_PEx_t TU_instance_tbl[]
BMTimer1_TValueType(* fnTUGetCounterValue_t)(LDD_TDeviceData *DeviceDataPtr)
This is the the function pointer signature retrieving the Timer Unit counter.
uint32_t BMTimer1_TValueType
Definition: BMTimer1.h:126
This structure contains Timer Unit LLD function pointers.
LDD_TDeviceData *(* fnTUInit_t)(LDD_TUserData *UserDataPtr)
This is the function pointer signature for Timer Unit initialization.
fnTUResetCounter_t fnTULDDResetCounter
LDD_TError(* fnTUGetPeriodTicks_t)(LDD_TDeviceData *DeviceDataPtr, BMTimer1_TValueType *TicksPtr)
This is the the function pointer signature for retrieving the Timer Unit period.
This TimerUnit component provides a low level API for unified hardware access across various timer de...
LDD_TError(* fnTUEnable_t)(LDD_TDeviceData *DeviceDataPtr)
This is the function pointer signature for Timer Unit enable.
fnTUGetCounterValue_t fnTULDDGetCounter
void(* fnTUDeinit_t)(LDD_TDeviceData *DeviceDataPtr)
This is the function pointer signature for Timer Unit de-initialization.
fnTUSetPeriodTicks_t fnTULDDSetPeriod
fnTUEnable_t fnTULDDEnable
fnTUDeinit_t fnTULDDDeint
LDD_TError(* fnTUDisable_t)(LDD_TDeviceData *DeviceDataPtr)
This is the function pointer signature for Timer Unit disable.
fnTUInit_t fnTULDDInit
fnTUGetPeriodTicks_t fnTULDDGetPeriod