| 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
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.*/
50 } i2c_instance_PEx;
51
52 #endif /* ISF_FSL_I2C_PEX_H_ */
53
i2c_instance_PEx::fnI2CLLDdeviceEn
fnI2CDeviceEnable_t fnI2CLLDdeviceEn
Definition: isf_fsl_i2c_PEx.h:46
i2c_instance_PEx
This structure contains i2c LLD function pointers.
Definition: isf_fsl_i2c_PEx.h:42
fnI2CWrite_t
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.
Definition: isf_fsl_i2c_PEx.h:38
i2c_instance_PEx::fnI2CLLDDeint
fnI2CDeint_t fnI2CLLDDeint
Definition: isf_fsl_i2c_PEx.h:44
i2c_instance_PEx::fnI2CLLDWrite
fnI2CWrite_t fnI2CLLDWrite
Definition: isf_fsl_i2c_PEx.h:49
fnI2CDeviceEnable_t
LDD_TError(* fnI2CDeviceEnable_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for enabling the device.
Definition: isf_fsl_i2c_PEx.h:26
fnI2CInit_t
LDD_TDeviceData *(* fnI2CInit_t)(LDD_TUserData *apUserData)
This is the function pointer signature for i2c initialization.
Definition: isf_fsl_i2c_PEx.h:14
fnI2CRead_t
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.
Definition: isf_fsl_i2c_PEx.h:34
i2c_instance_PEx::fnI2CLLDInit
fnI2CInit_t fnI2CLLDInit
Definition: isf_fsl_i2c_PEx.h:43
fnI2CDeviceDisable_t
LDD_TError(* fnI2CDeviceDisable_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for disabling the device.
Definition: isf_fsl_i2c_PEx.h:30
fnI2CDeint_t
void(* fnI2CDeint_t)(LDD_TDeviceData *apDevice)
This is the function pointer signature for i2c de-initialization.
Definition: isf_fsl_i2c_PEx.h:18
i2c_instance_PEx::fnI2CLLDdeviceDis
fnI2CDeviceDisable_t fnI2CLLDdeviceDis
Definition: isf_fsl_i2c_PEx.h:47
i2c_instance_PEx::fnI2CLLDDeviceSelect
fnI2CDeviceSelect_t fnI2CLLDDeviceSelect
Definition: isf_fsl_i2c_PEx.h:45
i2c_instance_PEx::fnI2CLLDRead
fnI2CRead_t fnI2CLLDRead
Definition: isf_fsl_i2c_PEx.h:48
fnI2CDeviceSelect_t
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.
Definition: isf_fsl_i2c_PEx.h:22
- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.