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_i2c_PEx.h
Go to the documentation of this file.
1 /*
2  * isf_fsl_i2c_PEx.h
3  *
4  * Created on: Apr 9, 2014
5  * Author: B39109
6  */
7 
8 #ifndef ISF_FSL_I2C_PEX_H_
9 #define ISF_FSL_I2C_PEX_H_
10 #include "PE_Types.h"
11 /**
12  * @brief This is the function pointer signature for i2c initialization.
13  */
14 typedef LDD_TDeviceData* (*fnI2CInit_t) (LDD_TUserData *apUserData);
15 /**
16  * @brief This is the function pointer signature for i2c de-initialization.
17  */
18 typedef void (*fnI2CDeint_t) (LDD_TDeviceData *apDevice);
19 /**
20  * @brief This is the function pointer signature for selecting the device.
21  */
22 typedef LDD_TError (*fnI2CDeviceSelect_t) (LDD_TDeviceData *apDevice, LDD_I2C_TAddrType AddrType, LDD_I2C_TAddr Addr);
23 /**
24  * @brief This is the function pointer signature for enabling the device.
25  */
26 typedef LDD_TError (*fnI2CDeviceEnable_t) (LDD_TDeviceData *apDevice);
27 /**
28  * @brief This is the function pointer signature for disabling the device.
29  */
30 typedef LDD_TError (*fnI2CDeviceDisable_t) (LDD_TDeviceData *apDevice);
31 /**
32  * @brief This is the function pointer signature for reading the data from a specified device.
33  */
34 typedef LDD_TError (*fnI2CRead_t) (LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, LDD_I2C_TSize Size, LDD_I2C_TSendStop SendStops);
35 /**
36  * @brief This is the the function pointer signature for writing the data to a specified device.
37  */
38 typedef LDD_TError (*fnI2CWrite_t) (LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, LDD_I2C_TSize Size, LDD_I2C_TSendStop SendStop);
39 /**
40  * @brief This structure contains i2c LLD function pointers.
41  */
42 typedef struct {
43  fnI2CInit_t fnI2CLLDInit; /*!< Initialize a i2c LDD component.*/
44  fnI2CDeint_t fnI2CLLDDeint; /*!< De-initialize the i2c LDD component.*/
45  fnI2CDeviceSelect_t fnI2CLLDDeviceSelect; /*!< Select the device.*/
46  fnI2CDeviceEnable_t fnI2CLLDdeviceEn; /*!< Enable the device.*/
47  fnI2CDeviceDisable_t fnI2CLLDdeviceDis; /*!< Disable the device.*/
48  fnI2CRead_t fnI2CLLDRead; /*!< Read from a device.*/
49  fnI2CWrite_t fnI2CLLDWrite; /*!< Write to a device.*/
51 
52 #endif /* ISF_FSL_I2C_PEX_H_ */
53 
fnI2CDeviceEnable_t fnI2CLLDdeviceEn
This structure contains i2c LLD function pointers.
LDD_TError(* fnI2CWrite_t)(LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, LDD_I2C_TSize Size, LDD_I2C_TSendStop SendStop)
This is the the function pointer signature for writing the data to a specified device.
fnI2CDeint_t fnI2CLLDDeint
fnI2CWrite_t fnI2CLLDWrite
LDD_TError(* fnI2CDeviceEnable_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for enabling the device.
LDD_TDeviceData *(* fnI2CInit_t)(LDD_TUserData *apUserData)
This is the function pointer signature for i2c initialization.
LDD_TError(* fnI2CRead_t)(LDD_TDeviceData *apDevice, LDD_TData *BufferPtr, LDD_I2C_TSize Size, LDD_I2C_TSendStop SendStops)
This is the function pointer signature for reading the data from a specified device.
fnI2CInit_t fnI2CLLDInit
LDD_TError(* fnI2CDeviceDisable_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for disabling the device.
void(* fnI2CDeint_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for i2c de-initialization.
fnI2CDeviceDisable_t fnI2CLLDdeviceDis
fnI2CDeviceSelect_t fnI2CLLDDeviceSelect
fnI2CRead_t fnI2CLLDRead
LDD_TError(* fnI2CDeviceSelect_t)(LDD_TDeviceData *apDevice, LDD_I2C_TAddrType AddrType, LDD_I2C_TAddr Addr)
This is the function pointer signature for selecting the device.