| ISF 2.2 rev 5 Intelligent Sensing Framework for Kinetis with Processor Expert

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

isf_i2c_master_types.h
Go to the documentation of this file.
1 /*!
2 ********************************************************************************
3 * File: isf_i2c_master_types.h
4 *
5 * Copyright (c) 2015, Freescale Semiconductor, Inc.
6 *
7 *******************************************************************************/
8 /*!
9 * @file isf_i2c_master_types.h
10 * @brief \b isf_i2c_master_types.h defines the i2c master protocol adapter structure and types.
11 */
12 #ifndef ISF_I2C_MASTER_TYPES_H_
13 #define ISF_I2C_MASTER_TYPES_H_
14 #include "isf_types.h"
15 #include "isf.h"
16 #include "fsl_i2c_master_driver.h"
17 typedef struct i2c_Master_BusConfig_struct {
18 isf_duration_t timeout; /*!< The bus timeout value to use.*/
19 uint16 defaultSpeed; /*!< The speed at which to run the bus.*/
20 } i2c_Master_BusConfig_t;
21
22 /*! @brief This structure defines the data bus handle. */
23 typedef struct i2c_Master_BusHandle_struct
24 {
25
26 i2c_master_state_t master; /*!< The pointer to the i2c_master. */ // @todo check if *void is possible.
27 i2c_Master_BusConfig_t busConfig; /*!< current bus configuration.*/
28 uint32 busInstance; /*!< The unique ID associated for the bus instance. */
29 uint8 id; /*!< The unique ID associated with the bus handle. */
30 uint8 busState; /*!< The bus sate.*/
31 }i2c_Master_busHandle_t;
32
33
34 #endif /* ISF_I2C_MASTER_TYPES_H_ */
35
36
37
38
39
40
41
uint8
unsigned char uint8
Definition: isf_types.h:76
i2c_Master_BusHandle_struct::busInstance
uint32 busInstance
Definition: isf_i2c_master_types.h:28
i2c_Master_BusHandle_struct
This structure defines the data bus handle.
Definition: isf_i2c_master_types.h:23
i2c_Master_BusHandle_struct::busConfig
i2c_Master_BusConfig_t busConfig
Definition: isf_i2c_master_types.h:27
i2c_Master_BusConfig_struct::timeout
isf_duration_t timeout
Definition: isf_i2c_master_types.h:18
i2c_Master_busHandle_t
struct i2c_Master_BusHandle_struct i2c_Master_busHandle_t
This structure defines the data bus handle.
isf_types.h
The isf_types.h file contains the ISF data type definitions and some of the globally used macros...
i2c_Master_BusConfig_struct::defaultSpeed
uint16 defaultSpeed
Definition: isf_i2c_master_types.h:19
i2c_Master_BusHandle_struct::busState
uint8 busState
Definition: isf_i2c_master_types.h:30
isf_duration_t
uint32 isf_duration_t
ISF time duration in microseconds.
Definition: isf.h:84
isf.h
Main ISF header file. Contains code common to all ISF components.
uint16
unsigned short int uint16
Definition: isf_types.h:77
i2c_Master_BusConfig_t
struct i2c_Master_BusConfig_struct i2c_Master_BusConfig_t
i2c_Master_BusHandle_struct::id
uint8 id
Definition: isf_i2c_master_types.h:29
i2c_Master_BusConfig_struct
Definition: isf_i2c_master_types.h:17
uint32
unsigned long int uint32
Definition: isf_types.h:78
i2c_Master_BusHandle_struct::master
i2c_master_state_t master
Definition: isf_i2c_master_types.h:26
- © Freescale Semiconductor, Inc. 2016. All Rights Reserved.