scoutos / scout_avr / bom / tiny-twi-sync.h @ e92b8d00
History | View | Annotate | Download (290 Bytes)
1 |
#ifndef TINY_TWI_SYNC_H
|
---|---|
2 |
#define TINY_TWI_SYNC_H
|
3 |
|
4 |
#define BOM_I2C_SEND 1 |
5 |
|
6 |
#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 smb_poll(void); |
14 |
|
15 |
#endif
|