![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
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"
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... | |
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.
#define I2C_WRITE_BUFF_SIZE_MAX 0x32 |
Definition at line 35 of file fsl_i2c_master_driver.c.
Enumerator | |
---|---|
kI2CAddress7bitMask |
The mask for a 7-bit I2C slave address. |
Definition at line 23 of file fsl_i2c_master_driver.c.
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.