
Go to the source code of this file.
Functions | |
| static void | appendGPSCoord (const gps_pos_t *gps, char **buffer, int *bufferLength, double v, const char *degreesFormat, char posC, char negC) |
| static void | appendGPSTimeOfLastFix (const gps_pos_t *gps, char **buffer, int *bufferLength) |
| uint32_t | checksum32 (const void *data, int count) |
| uint64_t | didToRmcBit (uint32_t dataId, uint64_t defaultRmcBits) |
| uint32_t | flashChecksum32 (const void *data, int size) |
| void | flipDouble (void *ptr) |
| double | flipDoubleCopy (double val) |
| void | flipDoubles (uint8_t *data, int dataLength, int offset, uint16_t *offsets, uint16_t offsetsLength) |
| void | flipEndianess32 (uint8_t *data, int dataLength) |
| void | flipFloat (uint8_t *ptr) |
| float | flipFloatCopy (float val) |
| void | flipStrings (uint8_t *data, int dataLength, int offset, uint16_t *offsets, uint16_t offsetsLength) |
| uint16_t * | getDoubleOffsets (eDataIDs dataId, uint16_t *offsetsLength) |
| uint16_t * | getStringOffsetsLengths (eDataIDs dataId, uint16_t *offsetsLength) |
| double | gpsToJulian (int32_t gpsWeek, int32_t gpsMilliseconds, int32_t leapSeconds) |
| int | gpsToNmeaGGA (const gps_pos_t *gps, char *buffer, int bufferLength) |
| double | gpsToUnix (uint32_t gpsWeek, uint32_t gpsTimeofWeekMS, uint8_t leapSeconds) |
| void | julianToDate (double julian, int32_t *year, int32_t *month, int32_t *day, int32_t *hour, int32_t *minute, int32_t *second, int32_t *millisecond) |
| int | satNo (int sys, int prn) |
| int | satNumCalc (int gnssID, int svID) |
| uint32_t | serialNumChecksum32 (const void *data, int size) |
| int | ubxSys (int gnssID) |
|
static |
Definition at line 726 of file data_sets.c.
|
static |
Definition at line 715 of file data_sets.c.
| uint32_t checksum32 | ( | const void * | data, |
| int | count | ||
| ) |
Creates a 32 bit checksum from data
| data | the data to create a checksum for |
| count | the number of bytes in data |
Definition at line 531 of file data_sets.c.
| uint64_t didToRmcBit | ( | uint32_t | dataId, |
| uint64_t | defaultRmcBits | ||
| ) |
Convert DID to realtime message bits
Definition at line 563 of file data_sets.c.
| uint32_t flashChecksum32 | ( | const void * | data, |
| int | size | ||
| ) |
Definition at line 557 of file data_sets.c.
| void flipDouble | ( | void * | ptr | ) |
Flip the bytes of a double in place (8 bytes) - ptr is assumed to be at least 8 bytes Only flips each 4 byte pair, does not flip the individual bytes within the pair
| ptr | the double to flip |
Definition at line 47 of file data_sets.c.
| double flipDoubleCopy | ( | double | val | ) |
Flip the bytes of a double in place (8 bytes) Unlike flipDouble, this also flips the individual bytes in each 4 byte pair
| val | the double to flip |
Definition at line 60 of file data_sets.c.
| void flipDoubles | ( | uint8_t * | data, |
| int | dataLength, | ||
| int | offset, | ||
| uint16_t * | offsets, | ||
| uint16_t | offsetsLength | ||
| ) |
Flip double (64 bit) floating point values in data
| data | the data to flip doubles in |
| dataLength | the number of bytes in data |
| offset | offset into data to start flipping at |
| offsets | a list of offsets of all doubles in data, starting at position 0 |
| offsetsLength | the number of items in offsets |
Definition at line 91 of file data_sets.c.
| void flipEndianess32 | ( | uint8_t * | data, |
| int | dataLength | ||
| ) |
Flip the endianess of 32 bit values in data
| data | the data to flip 32 bit values in |
| dataLength | the number of bytes in data |
Definition at line 73 of file data_sets.c.
| void flipFloat | ( | uint8_t * | ptr | ) |
Flip the bytes of a float in place (4 bytes) - ptr is assumed to be at least 4 bytes
| ptr | the float to flip |
Definition at line 19 of file data_sets.c.
| float flipFloatCopy | ( | float | val | ) |
Flip the bytes of a float (4 bytes) - ptr is assumed to be at least 4 bytes
| val | the float to flip |
Definition at line 31 of file data_sets.c.
| void flipStrings | ( | uint8_t * | data, |
| int | dataLength, | ||
| int | offset, | ||
| uint16_t * | offsets, | ||
| uint16_t | offsetsLength | ||
| ) |
Flip string values in data - this compensates for the fact that flipEndianess32 is called on all the data
| data | the data to flip string values in |
| dataLength | the number of bytes in data |
| offset | the offset into data to start flipping strings at |
| offsets | a list of offsets and byte lengths into data where strings start at |
| offsetsLength | the number of items in offsets, should be 2 times the string count |
Definition at line 117 of file data_sets.c.
| uint16_t* getDoubleOffsets | ( | eDataIDs | dataId, |
| uint16_t * | offsetsLength | ||
| ) |
Get the offsets of double / int64 (64 bit) values given a data id
| dataId | the data id to get double offsets for |
| offsetsLength | receives the number of double offsets |
Definition at line 141 of file data_sets.c.
| uint16_t* getStringOffsetsLengths | ( | eDataIDs | dataId, |
| uint16_t * | offsetsLength | ||
| ) |
Gets the offsets and lengths of strings given a data id
| dataId | the data id to get string offsets and lengths for |
| offsetsLength | receives the number of items in the return value |
Definition at line 382 of file data_sets.c.
| double gpsToJulian | ( | int32_t | gpsWeek, |
| int32_t | gpsMilliseconds, | ||
| int32_t | leapSeconds | ||
| ) |
Convert GPS Week and Seconds to Julian Date. Leap seconds are the GPS-UTC offset (18 seconds as of December 31, 2016).
Definition at line 708 of file data_sets.c.
| int gpsToNmeaGGA | ( | const gps_pos_t * | gps, |
| char * | buffer, | ||
| int | bufferLength | ||
| ) |
Definition at line 745 of file data_sets.c.
| double gpsToUnix | ( | uint32_t | gpsWeek, |
| uint32_t | gpsTimeofWeekMS, | ||
| uint8_t | leapSeconds | ||
| ) |
Convert GPS Week and Ms and leapSeconds to Unix seconds
Definition at line 699 of file data_sets.c.
| void julianToDate | ( | double | julian, |
| int32_t * | year, | ||
| int32_t * | month, | ||
| int32_t * | day, | ||
| int32_t * | hour, | ||
| int32_t * | minute, | ||
| int32_t * | second, | ||
| int32_t * | millisecond | ||
| ) |
Convert Julian Date to calendar date.
Definition at line 607 of file data_sets.c.
| int satNo | ( | int | sys, |
| int | prn | ||
| ) |
Definition at line 868 of file data_sets.c.
| int satNumCalc | ( | int | gnssID, |
| int | svID | ||
| ) |
Definition at line 908 of file data_sets.c.
| uint32_t serialNumChecksum32 | ( | const void * | data, |
| int | size | ||
| ) |
Definition at line 551 of file data_sets.c.
| int ubxSys | ( | int | gnssID | ) |
Definition at line 849 of file data_sets.c.