Rev 942 | Details | Compare with Previous | 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; |
943 | pangu | 12 | extern volatile uint8_t motor_rx[2*MOTOR_COUNT]; |
936 | killagreg | 13 | extern volatile uint16_t I2CTimeout; |
1 | ingob | 14 | |
936 | killagreg | 15 | extern void I2C_Init (void); // Initialize I2C |
16 | extern void I2C_Start(void); // Start I2C |
||
886 | killagreg | 17 | extern void I2C_Stop (void); // Stop I2C |
18 | extern void I2C_Reset(void); // Reset I2C |
||
1 | ingob | 19 | |
20 | #endif |