Function novatel_gps_driver::ParseUInt16(const uint8_t *)

Function Documentation

uint16_t novatel_gps_driver::ParseUInt16(const uint8_t *buffer)

Converts a buffer containing 2 bytes into an unsigned 16-bit int.

This assumes that the bytes in the buffer are already arranged with the same endianness as the local platform.

Parameters:

buffer – A buffer containing 2 bytes of data.

Returns:

The uint16_t represented by the data in the buffer.