Subversion Repositories FlightCtrl

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1910 - 1
#ifndef _I2C_MASTER_H
2
#define _I2C_MASTER_H
3
 
4
#include <inttypes.h>
5
 
6
#define TWI_STATE_IDLE                      0
7
#define TWI_STATE_GYRO_OFFSET_TX                7
8
 
9
extern volatile uint8_t twi_state;
10
 
11
volatile extern uint8_t DACValues[4];
12
 
13
extern volatile uint16_t I2CTimeout;
14
 
15
extern void I2C_init(void); // Initialize I2C
16
extern void I2C_Start(uint8_t start_state); // Start I2C
17
extern void I2C_Stop(uint8_t start_state); // Stop I2C
18
extern void I2C_Reset(void); // Reset I2C
19
 
20
#endif