mirror of
https://github.com/peter-tanner/neptunium-firmware.git
synced 2024-12-02 21:10:18 +08:00
20 lines
397 B
C
20 lines
397 B
C
/*
|
|
* neo_m8_ubx_checksum.h
|
|
*
|
|
* Created on: Jul 17, 2018
|
|
* Author: alexis
|
|
*/
|
|
|
|
#ifndef NEO_M8_UBX_CHECKSUM_H_
|
|
#define NEO_M8_UBX_CHECKSUM_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
/* Straightforward Solution */
|
|
uint16_t Fletcher16(uint8_t *data, int count);
|
|
|
|
/* Following UBX's documentation */
|
|
void UBX_Fletcher(uint8_t *data, int count, uint8_t *cka, uint8_t *ckb);
|
|
|
|
#endif /* NEO_M8_UBX_CHECKSUM_H_ */
|