| 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.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 */
25 const i2c_instance_PEx i2c_instance_tbl[] = {
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
i2c_instance_PEx
This structure contains i2c LLD function pointers.
Definition: isf_fsl_i2c_PEx.h:42
fsl_i2c_master_driver.h
fsl_i2c_master_driver.h defines structures and types for the i2c master driver.
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_tbl
const i2c_instance_PEx i2c_instance_tbl[]
Lookup table for the LLD instance.
Definition: isf_fsl_i2c_PEx.c:25
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
isf_i2c_master_adapter.h
isf_i2c_master_adapter.h defines the API definitions and types for the i2c master protocol adapter...
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
isf_fsl_i2c_PEx.h
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.