⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nmea_r00.c

📁 the example file that can decode the NMEA protocol
💻 C
字号:
#include <stdlib.h>#include <string.h>#include "NMEA_Lib.h"#if (NMEA_INCLUDE_R00 == 1)#include "NMEA_R00.h"BOOL NMEA_ParseR00Sentence(CHAR * sentence, struct NMEAObject_t * NMEAObject, UINT32 * flags){    UINT32 sentence_index = 3;    BOOL ret_val = NMEA_FAILURE;    if('R' == sentence[0] && '0' == sentence[1] && '0' == sentence[2])    {        sentenceToWPID(sentence, &NMEAObject->R00Object.WaypointID, &sentence_index, NMEA_R00_WAYPOINTID, flags);    }    return ret_val;}BOOL NMEA_CreateR00Sentence(CHAR * sentence, struct NMEAObject_t * NMEAObject, UINT32 * flags){    UINT32 sentence_index = 3;    BOOL ret_val = NMEA_FAILURE;    sentence[0] = 'R';    sentence[1] = '0';    sentence[2] = '0';    sentenceFromWPID(sentence, &NMEAObject->R00Object.WaypointID, &sentence_index, NMEA_R00_WAYPOINTID, flags);    return ret_val;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -