X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=blobdiff_plain;f=i2c_protocol.h;h=66d5831c7f733f3644cbb9728244cb9e17cedd6d;hp=d1012790b9166cb3e0c604aba48950f7873b5496;hb=HEAD;hpb=8f96511dd4a3a354a6a8c18bae5ade21b221fd95 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