beep when GPS ready
[protos/xbee-avr.git] / i2c_protocol.h
index d101279..66d5831 100644 (file)
 #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