29 #define GPS_I2C_SLAVE_ADDR (0x42 << 1)
31 #define GPS_I2C_BUF_SIZE 256
43 #define gps_i2cEvent() { if (gps_i2c_done) gps_i2c_event(); }
44 #define gps_i2cChAvailable() (gps_i2c_rx_insert_idx != gps_i2c_rx_extract_idx)
45 #define gps_i2cGetch() (gps_i2c_rx_buf[gps_i2c_rx_extract_idx++])
46 #define gps_i2cTransmit(_char) { \
47 if (! gps_i2c_data_ready_to_transmit) \
48 gps_i2c_tx_buf[gps_i2c_tx_insert_idx++] = _char; \
50 #define gps_i2cSendMessage() { \
51 gps_i2c_data_ready_to_transmit = TRUE; \
52 gps_i2c_tx_extract_idx = 0; \
uint8_t gps_i2c_tx_buf[GPS_I2C_BUF_SIZE]
void gps_i2c_periodic(void)
bool_t gps_i2c_data_ready_to_transmit
uint8_t gps_i2c_rx_extract_idx
uint8_t gps_i2c_rx_buf[GPS_I2C_BUF_SIZE]
uint8_t gps_i2c_tx_insert_idx
uint8_t gps_i2c_tx_extract_idx
uint8_t gps_i2c_rx_insert_idx