scoutos / scout_avr / bom / tiny-twi-sync.h @ e92b8d00
History | View | Annotate | Download (290 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 | e92b8d00 | Tom Mullins | void smb_poll(void); |
14 | 1117552f | Aaron Perley | |
15 | #endif |