scoutos / scout_avr / bom / tiny-twi.h @ master
History | View | Annotate | Download (236 Bytes)
1 | 47a7eeb7 | Tom Mullins | #ifndef TINY_TWI_H
|
---|---|---|---|
2 | #define TINY_TWI_H
|
||
3 | |||
4 | #include <stdint.h> |
||
5 | |||
6 | typedef void (*slave_rx_t)(uint8_t*, int); |
||
7 | |||
8 | void smb_init(slave_rx_t slave_rx);
|
||
9 | void smb_set_address(uint8_t addr);
|
||
10 | cbe25c0a | tmullins | void smb_send_data(uint8_t* data, uint8_t length);
|
11 | 47a7eeb7 | Tom Mullins | |
12 | #endif |