Home
last modified time | relevance | path

Searched refs:checksum (Results 1 – 1 of 1) sorted by relevance

/loramac-node-3.7.0/src/system/
Dgps.c246 int32_t GpsNmeaChecksum( int8_t *nmeaStr, int32_t nmeaStrSize, int8_t * checksum ) in GpsNmeaChecksum() argument
252 if( ( nmeaStr == NULL ) || ( checksum == NULL ) || ( nmeaStrSize <= 1 ) ) in GpsNmeaChecksum()
275 checksum[0] = Nibble2HexChar( checkNum / 16 ); // upper nibble in GpsNmeaChecksum()
276 checksum[1] = Nibble2HexChar( checkNum % 16 ); // lower nibble in GpsNmeaChecksum()
289 int8_t checksum[2]; // 2 characters to calculate NMEA checksum in GpsNmeaValidateChecksum() local
291 checksumIndex = GpsNmeaChecksum( serialBuff, buffSize, checksum ); in GpsNmeaValidateChecksum()
306 …if( ( serialBuff[checksumIndex] == checksum[0] ) && ( serialBuff[checksumIndex + 1] == checksum[1]… in GpsNmeaValidateChecksum()