4008-04-07 Release
[avr_bc100.git] / BaseMegaFirmware / GCC / bc100_slave.h
1 // Martin Thomas 3/2008\r
2 #ifndef BC100_SLAVE_H\r
3 #define BC100_SLAVE_H\r
4 \r
5 #define BC100_SLAVE_TEST\r
6 \r
7 #include <stdint.h>\r
8 #include <stdlib.h>\r
9 \r
10 #define BC100_SLAVE_READ    0x00\r
11 #define BC100_SLAVE_WRITE   0x40\r
12 #define BC100_SLAVE_EEPROM  0x80\r
13 #define BC100_SLAVE_SRAM    0x00\r
14 \r
15 \r
16 void bc100_slave_init( void );\r
17 uint8_t bc100_slave_read( uint8_t cmd, size_t size, void *buf );\r
18 \r
19 #ifdef BC100_SLAVE_TEST\r
20 uint8_t bc100_slave_test(void);\r
21 #endif\r
22 \r
23 #endif\r