Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
i2c_arch.h
Go to the documentation of this file.
1 #ifndef I2C_HW_H
2 #define I2C_HW_H
3 
4 
5 #include "LPC21xx.h"
6 
7 
8 #define I2C_START 0x08
9 #define I2C_RESTART 0x10
10 #define I2C_MT_SLA_ACK 0x18
11 #define I2C_MT_SLA_NACK 0x20
12 #define I2C_MT_DATA_ACK 0x28
13 #define I2C_MR_SLA_ACK 0x40
14 #define I2C_MR_SLA_NACK 0x48
15 #define I2C_MR_DATA_ACK 0x50
16 #define I2C_MR_DATA_NACK 0x58
17 
18 
19 #ifdef USE_I2C0
20 
21 extern void i2c0_hw_init(void);
22 
23 #endif /* USE_I2C0 */
24 
25 
26 
27 #ifdef USE_I2C1
28 
29 extern void i2c1_hw_init(void);
30 
31 #endif /* USE_I2C1 */
32 
33 
34 #endif /* I2C_HW_H */