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.c
Go to the documentation of this file.
1 /*!
2 ********************************************************************************
3 * File:isf_fsl_i2c_PEx.c
4 *
5 * Copyright (c) 2012-2014, Freescale Semiconductor, Inc.
6 *
7 *******************************************************************************/
8 /*!
9 * @file isf_fsl_i2c_PEx.c
10 * @brief \b isf_fsl_i2c_PEx.c implements PEx properties and event. Its also implements LDD overriding events.
11 */
12 #include "isf_fsl_i2c_PEx.h"
13 #include "mqxlite.h"
14 #include "lwevent.h"
15 #include "fsl_i2c_master_driver.h"
16 #include "isf_i2c_master_adapter.h"
17 
18 
19 #include "I2CBUS1.h"
20 /**
21  * @brief Lookup table for the LLD instance.
22  *
23  *
24 */
26  {
27  .fnI2CLLDInit = (fnI2CInit_t)&I2CBUS1_Init,
28  .fnI2CLLDDeint = (fnI2CDeint_t)&I2CBUS1_Deinit,
29  .fnI2CLLDDeviceSelect = (fnI2CDeviceSelect_t)&I2CBUS1_SelectSlaveDevice,
30  .fnI2CLLDdeviceEn = (fnI2CDeviceEnable_t)&I2CBUS1_Enable,
31  .fnI2CLLDdeviceDis = (fnI2CDeviceDisable_t)&I2CBUS1_Disable,
32  .fnI2CLLDRead = (fnI2CRead_t)&I2CBUS1_MasterReceiveBlock,
33  .fnI2CLLDWrite = (fnI2CWrite_t)&I2CBUS1_MasterSendBlock,
34  }
35 };
36 
37 
38 
This structure contains i2c LLD function pointers.
fsl_i2c_master_driver.h defines structures and types for the i2c master driver.
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.
const i2c_instance_PEx i2c_instance_tbl[]
Lookup table for the LLD instance.
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
isf_i2c_master_adapter.h defines the API definitions and types for the i2c master protocol adapter...
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.
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.