X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=i2c_protocol.h;fp=i2c_protocol.h;h=66d5831c7f733f3644cbb9728244cb9e17cedd6d;hp=d1012790b9166cb3e0c604aba48950f7873b5496;hb=66e8a69f26ffb8039688651235f223428383dac9;hpb=0704ac13884035e9124507092664910f9936bb5d diff --git a/i2c_protocol.h b/i2c_protocol.h index d101279..66d5831 100644 --- a/i2c_protocol.h +++ b/i2c_protocol.h @@ -22,17 +22,24 @@ #ifndef _I2C_PROTOCOL_H_ #define _I2C_PROTOCOL_H_ +/* load the timer for i2c protocol */ void i2c_protocol_init(void); + +/* dump i2c debug infos (stats) */ void i2c_protocol_debug(void); +/* wait that all received status have been updated once */ void i2cproto_wait_update(void); - void i2c_recvevent(uint8_t *buf, int8_t size); void i2c_recvbyteevent(uint8_t hwstatus, uint8_t i, uint8_t c); void i2c_sendevent(int8_t size); +/* control the led of another board (debug) */ int8_t i2c_led_control(uint8_t addr, uint8_t led, uint8_t state); +/* latest received imuboard_status. Access with care as it can be modified in + * the i2c timer. */ +struct i2c_ans_imuboard_status imuboard_status; #endif