root / scout_avr / bom / tiny-twi-sync.h @ 502da1a1
History | View | Annotate | Download (289 Bytes)
1 | 1117552f | Aaron Perley | #ifndef TINY_TWI_SYNC_H
|
---|---|---|---|
2 | #define TINY_TWI_SYNC_H
|
||
3 | |||
4 | 3bd564a7 | Aaron Perley | #define BOM_I2C_SEND 1 |
5 | |||
6 | 1117552f | Aaron Perley | #include <stdint.h> |
7 | |||
8 | typedef void (*slave_rx_t)(uint8_t*, int); |
||
9 | |||
10 | void smb_init(slave_rx_t slave_rx);
|
||
11 | void smb_set_address(uint8_t addr);
|
||
12 | void smb_send_data(uint8_t* data, uint8_t length);
|
||
13 | void twi_run(void); |
||
14 | |||
15 | #endif |