embeddedlibrary
reusable software modules for embedded systems
hal_i2c.h
1 /*
2  * File: hal_i2c.h
3  * Author: Anthony Merlino
4  *
5  * Created on February 26, 2015, 1:31 PM
6  */
7 
8 #ifndef _HAL_I2C_H_
9 #define _HAL_I2C_H_
10 
11 #include <stdint.h>
12 
13 #define I2C_B0 0
14 #define I2C_B1 1
15 
16 typedef struct i2c_settings_t {
17  uint8_t channel;
18  uint32_t bit_rate;
19  uint8_t address_length : 1;
21 
22 #endif //_HAL_I2C_H_
Definition: hal_i2c.h:16