21 #ifndef SELKIELoggerGPS_Serial
22 #define SELKIELoggerGPS_Serial
39 #define UBX_SERIAL_BUFF 4096
54 bool ubx_waitForMessage(
const int handle,
const uint8_t msgClass,
const uint8_t msgID,
const int maxDelay,
bool ubx_waitForMessage(const int handle, const uint8_t msgClass, const uint8_t msgID, const int maxDelay, ubx_message *out)
Read (and discard) messages until required message seen or timeout reached.
bool ubx_writeMessage(int handle, const ubx_message *out)
Send message to attached device.
bool ubx_readMessage_buf(int handle, ubx_message *out, uint8_t buf[UBX_SERIAL_BUFF], int *index, int *hw)
Read data from handle, and parse message if able.
bool ubx_readMessage(int handle, ubx_message *out)
Static wrapper around ubx_readMessage_buf()
#define UBX_SERIAL_BUFF
Serial buffer size.
int ubx_openConnection(const char *port, const int initialBaud)
Set up a connection to a UBlox module on a given port.
void ubx_closeConnection(int handle)
Close a connection opened with ubx_openConnection()
Internal representation of a UBX message.