Permalink
Cannot retrieve contributors at this time
| #ifndef _I2C_H_ | |
| #define _I2C_H_ | |
| #include <stdint.h> | |
| // PPP framing | |
| #define STX 12 | |
| #define ETX 13 | |
| #define DLE 27 | |
| #define I2C_TX_BUF_SIZE 8 | |
| #define I2C_RX_BUF_SIZE 8 | |
| extern int i2c_master_tx(uint8_t addr, uint8_t *data, uint8_t l); | |
| extern int i2c_master_rx(uint8_t addr, uint8_t *data, uint8_t l); | |
| extern void twi_slave_rx(uint8_t u8_value); | |
| extern uint8_t twi_slave_tx(void); | |
| extern void twi_slave_stop(void); | |
| extern void ii_tx_queue(uint8_t); | |
| typedef void (*process_ii_t)(uint8_t *d, uint8_t l); | |
| extern volatile process_ii_t process_ii; | |
| #endif // header guard |