63 0xd0, 0x08, 0x00, 0x00,
64 0x00, 0x00, 0x00, 0x00,
74 setBaud.
data[8] = (uint8_t)(baud & 0xFF);
75 setBaud.
data[9] = (uint8_t)((baud >> 8) & 0xFF);
76 setBaud.
data[10] = (uint8_t)((baud >> 16) & 0xFF);
77 setBaud.
data[11] = (uint8_t)((baud >> 24) & 0xFF);
95 bool ubx_setMessageRate(
const int handle,
const uint8_t msgClass,
const uint8_t msgID,
const uint8_t rate) {
129 ubx_message poll = {0xB5, 0x62, msgClass, msgID, 0x0000, {0x00}, 0xFF, 0xFF, 0x00};
146 {0x00, 0x20, 0x20, 0x07, 0x00, 0x08, 0x10, 0x00, 0x01, 0x00, 0x01, 0x01,
147 0x01, 0x01, 0x03, 0x00, 0x00, 0x00, 0x01, 0x01, 0x02, 0x04, 0x08, 0x00,
148 0x01, 0x00, 0x01, 0x01, 0x03, 0x08, 0x10, 0x00, 0x00, 0x00, 0x01, 0x01,
149 0x04, 0x00, 0x08, 0x00, 0x00, 0x00, 0x01, 0x03, 0x05, 0x00, 0x03, 0x00,
150 0x01, 0x00, 0x01, 0x05, 0x06, 0x08, 0x0E, 0x00, 0x01, 0x00, 0x01, 0x01},
178 (interval & 0xFF), ((interval >> 8) & 0xFF), (outputRate & 0xFF),
179 ((outputRate >> 8) & 0xFF), 0x00,
208 0x00, 0x07, 0x00, 0x00, 0x00,
233 0x00, 0x00, 0x00, 0x00, 0x00,
260 (addr << 1), 0x00, 0x00, 0x00,
264 0x00, 0x00, 0x00, 0x00,
bool ubx_writeMessage(int handle, const ubx_message *out)
Send message to attached device.
bool ubx_pollMessage(const int handle, const uint8_t msgClass, const uint8_t msgID)
Request specific message by class and ID.
bool ubx_setI2CAddress(const int handle, const uint8_t addr)
Set I2C address.
bool ubx_setNavigationRate(const int handle, const uint16_t interval, const uint16_t outputRate)
Set UBX navigation calculation and reporting rate.
bool ubx_enableGalileo(const int handle)
Enable Galileo constellation use.
bool ubx_enableLogMessages(const int handle)
Enable log/information messages from GPS device.
bool ubx_disableLogMessages(const int handle)
Disable log/information messages from GPS device.
bool ubx_setMessageRate(const int handle, const uint8_t msgClass, const uint8_t msgID, const uint8_t rate)
Send UBX rate command to enable/disable message types.
bool ubx_setBaudRate(const int handle, const uint32_t baud)
Send UBX port configuration to switch baud rate.
void ubx_set_checksum(ubx_message *msg)
Set checksum bytes for UBX message.
Internal representation of a UBX message.
uint8_t data[256]
Data if length <= 256.