37 #include "pprzlink/pprzlink_device.h"
39 #define GPS_I2C_BUF_SIZE 255
111 #endif // GPS_UBX_I2C_H
uint16_t tx_buf_idx
tx buf index
GpsI2CWriteState
write states
transaction successfully finished by I2C driver
request size of ubx buffer
void gps_i2c_begin(void)
config is done, begin reading messages
GpsI2CReadState read_state
wait for gps_ubx to read buffer or ucenter to transmit
struct i2c_transaction trans
i2c transaction
static void GpsUbxi2cEvent(void)
i2c event
uint8_t tx_buf[GPS_I2C_BUF_SIZE]
transmit buffer
uint16_t rx_buf_idx
rx buf index
void gps_ubx_i2c_init(void)
init function
uint8_t rx_buf[GPS_I2C_BUF_SIZE]
receive buffer
bool gps_i2c_tx_is_ready(void)
is driver ready to send a message
send a config msg and get reply
transaction set to done by user level
GpsI2CReadState
read states
bool tx_rdy
are we ready to transmit
I2C transaction structure.
enum I2CTransactionStatus status
Transaction status.
struct link_device device
ppz link device
uint16_t rx_buf_avail
how many bytes are waiting to be read
void gps_ubx_i2c_periodic(void)
handle message sending
GpsI2CWriteState write_state
int baudrate
baudrate, unused
void gps_ubx_i2c_read_event(void)
handle message reception
read data from ubx buffer
Architecture independent I2C (Inter-Integrated Circuit Bus) API.