![]() |
ISF
2.1
Intelligent Sensing Framework for Kinetis with Processor Expert
|
fsl_i2c_hal.h defines structures and types for the i2c master HAL layer. More...
#include "isf_types.h"
Go to the source code of this file.
Typedefs | |
typedef enum _i2c_status | i2c_status_t |
I2C status return codes. More... | |
Enumerations | |
enum | _i2c_status { kStatus_I2C_Success = 0, kStatus_I2C_OutOfRange, kStatus_I2C_InvalidArgument, kStatus_I2C_Fail, kStatus_I2C_Busy, kStatus_I2C_Timeout, kStatus_I2C_ReceivedNak, kStatus_I2C_SlaveTxUnderrun, kStatus_I2C_SlaveRxOverrun, kStatus_I2C_AribtrationLost } |
I2C status return codes. More... | |
Functions | |
void | i2c_hal_enable (uint32 instance) |
This function enables the HAL. More... | |
void | i2c_hal_disable (uint32 instance) |
This function disables the HAL. More... | |
fsl_i2c_hal.h defines structures and types for the i2c master HAL layer.
File: fsl_i2c_hal.h
Copyright (c) 2014, Freescale Semiconductor, Inc.
Definition in file fsl_i2c_hal.h.
typedef enum _i2c_status i2c_status_t |
I2C status return codes.
enum _i2c_status |
I2C status return codes.
Definition at line 16 of file fsl_i2c_hal.h.
void i2c_hal_disable | ( | uint32 | instance | ) |
This function disables the HAL.
This allows to perform dynamic OFF the bus.
[in] | instance | The instance ID/ ID of the bus to disable. |
Definition at line 40 of file fsl_i2c_hal.c.
References i2c_instance_PEx::fnI2CLLDdeviceDis, i2c_Master_BusHandle_struct::master, and I2CMasterState::pDeviceHandle.
Referenced by i2c_master_adapter_stop().
void i2c_hal_enable | ( | uint32 | instance | ) |
This function enables the HAL.
This allows to perform dynamic ON of the bus.
[in] | instance | The instance ID/ ID of the bus to enable. |
Definition at line 27 of file fsl_i2c_hal.c.
References i2c_instance_PEx::fnI2CLLDdeviceEn, i2c_Master_BusHandle_struct::master, and I2CMasterState::pDeviceHandle.
Referenced by i2c_master_adapter_start().