| 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
Macros | Enumerations | Functions | Variables
fsl_i2c_master_driver.c File Reference

fsl_i2c_master_driver.c implements i2c master driver layer. More...

`#include "fsl_i2c_master_driver.h"`
`#include "isf_fsl_i2c_PEx.h"`
`#include "PE_Types.h"`
`#include "PE_Error.h"`
`#include "mqxlite.h"`
`#include "lwmem.h"`
`#include "isf_util.h"`
Include dependency graph for fsl_i2c_master_driver.c:

Go to the source code of this file.

## Macros
#define | I2C_WRITE_BUFF_SIZE_MAX 0x32

## Enumerations
enum | _i2c_master_constants { kI2CAddress7bitMask = 0x7F }

## Functions
void | i2c_master_init (uint32_t instance, i2c_master_t *master)
| Initialize the I2C master mode driver. More...
void | i2c_master_shutdown (i2c_master_t *master)
| Shut down the driver. More...
i2c_status_t | i2c_master_configure_bus (i2c_master_t *master, const i2c_device_t *device)
| Configure the I2C bus to access a device. More...
i2c_status_t | i2c_master_transfer (i2c_master_t *master, const i2c_device_t *device, i2c_direction_t direction, bool flag, uint32_t subaddress, size_t subaddressLength, uint8_t *data, size_t dataLength, size_t *actualLengthTransferred, uint32_t timeout_ms)
| Perform a blocking read or write transaction on the I2C bus. More...

## Variables
uint8 | gSys_NumI2cBuses
i2c_instance_PEx | i2c_instance_tbl []
| Lookup table for the LLD instance. More...

## Detailed Description

fsl_i2c_master_driver.c implements i2c master driver layer.

File: fsl_i2c_master_driver.c

Copyright (c) 2014, Freescale Semiconductor, Inc.

Definition in file fsl_i2c_master_driver.c.

## Macro Definition Documentation

#define I2C_WRITE_BUFF_SIZE_MAX 0x32

Definition at line 35 of file fsl_i2c_master_driver.c.

## Enumeration Type Documentation

enum _i2c_master_constants

Enumerator
kI2CAddress7bitMask | The mask for a 7-bit I2C slave address.

Definition at line 23 of file fsl_i2c_master_driver.c.

## Variable Documentation

uint8 gSys_NumI2cBuses

Definition at line 34 of file isf_sysconf_comms.c.

Referenced by i2c_master_init(), i2c_master_shutdown(), and i2c_master_transfer().

i2c_instance_PEx i2c_instance_tbl[]

Lookup table for the LLD instance.

Definition at line 25 of file isf_fsl_i2c_PEx.c.

- © Freescale Semiconductor, Inc. 2015. All Rights Reserved.