NMEA2000 Library  0.1
Library to handle NMEA 2000 Communication written in C++
Seasmart.h
Go to the documentation of this file.
1
2/*
3 * Seasmart.h
4 *
5 * The MIT License
6 *
7 * Copyright (c) 2017-2024 Thomas Sarlandie thomas@sarlandie.net
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 * The above copyright notice and this permission notice shall be included in
16 * all copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25*/
26
27/*************************************************************************/
32#ifndef _Seasmart_h_
33#define _Seasmart_h_
34
35#include <N2kMsg.h>
36
37/************************************************************************/
59size_t N2kToSeasmart(const tN2kMsg &msg, uint32_t timestamp, char *buffer, size_t size);
60
61/************************************************************************/
78bool SeasmartToN2k(const char *buffer, uint32_t &timestamp, tN2kMsg &msg);
79
80#endif
This File contains the class tN2kMsg and all necessary functions to handle a NMEA2000 Message.
bool SeasmartToN2k(const char *buffer, uint32_t &timestamp, tN2kMsg &msg)
Converts a null terminated $PCDIN NMEA sentence into a tN2kMsg.
Definition: Seasmart.cpp:121
size_t N2kToSeasmart(const tN2kMsg &msg, uint32_t timestamp, char *buffer, size_t size)
Converts a tN2kMsg into a $PCDIN NMEA sentence.
Definition: Seasmart.cpp:67
This class contains all the data of an NMEA2000 message.
Definition: N2kMsg.h:656