Function novatel_gps_driver::ParseInt16(const uint8_t *)

Function Documentation

int16_t novatel_gps_driver::ParseInt16(const uint8_t *buffer)

Converts a buffer containing 2 bytes into a signed 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 int16_t represented by the data in the buffer.