 |
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
37 #include "pprzlink/pprzlink_device.h"
39 #define GPS_I2C_BUF_SIZE 255
111 #endif // GPS_UBX_I2C_H
@ gps_i2c_write_cfg
send a config msg and get reply
int baudrate
baudrate, unused
GpsI2CReadState read_state
uint16_t tx_buf_idx
tx buf index
GpsI2CWriteState
write states
struct i2c_transaction trans
i2c transaction
uint8_t rx_buf[GPS_I2C_BUF_SIZE]
receive buffer
@ I2CTransFailed
transaction failed
static void GpsUbxi2cEvent(void)
i2c event
@ I2CTransSuccess
transaction successfully finished by I2C driver
void gps_ubx_i2c_init(void)
init function
uint8_t tx_buf[GPS_I2C_BUF_SIZE]
transmit buffer
uint16_t rx_buf_idx
rx buf index
bool tx_rdy
are we ready to transmit
@ gps_i2c_write_standby
wait for gps_ubx to read buffer or ucenter to transmit
struct link_device device
ppz link device
bool gps_i2c_tx_is_ready(void)
is driver ready to send a message
@ gps_i2c_read_data
read data from ubx buffer
GpsI2CReadState
read states
enum I2CTransactionStatus status
Transaction status.
I2C transaction structure.
GpsI2CWriteState write_state
void gps_ubx_i2c_read_event(void)
handle message reception
@ I2CTransDone
transaction set to done by user level
uint16_t rx_buf_avail
how many bytes are waiting to be read
@ gps_i2c_read_standby
dont read anything
@ gps_i2c_read_sizeof
read size of ubx buffer
@ gps_i2c_write_request_size
request size of ubx buffer
void gps_ubx_i2c_periodic(void)
handle message sending
void gps_i2c_begin(void)
config is done, begin reading messages