Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | |
2 | #ifndef _I2C_MASTER_H |
||
3 | #define _I2C_MASTER_H |
||
886 | killagreg | 4 | |
1 | ingob | 5 | |
886 | killagreg | 6 | #include <inttypes.h> |
1 | ingob | 7 | |
936 | killagreg | 8 | #define TWI_STATE_MOTOR_TX 0 |
9 | #define TWI_STATE_GYRO_OFFSET_TX 7 |
||
1 | ingob | 10 | |
886 | killagreg | 11 | extern volatile uint8_t twi_state; |
1180 | killagreg | 12 | |
13 | #ifdef USE_QUADRO |
||
14 | extern uint8_t motor_rx[8]; |
||
15 | #else |
||
16 | extern uint8_t motor_rx[16]; |
||
17 | #endif |
||
18 | |||
936 | killagreg | 19 | extern volatile uint16_t I2CTimeout; |
1 | ingob | 20 | |
936 | killagreg | 21 | extern void I2C_Init (void); // Initialize I2C |
22 | extern void I2C_Start(void); // Start I2C |
||
886 | killagreg | 23 | extern void I2C_Stop (void); // Stop I2C |
24 | extern void I2C_Reset(void); // Reset I2C |
||
1 | ingob | 25 | |
26 | #endif |