ubxutils.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * ubxproto
  3. * Copyright (c) 2014, Alexey Edelev aka semlanik, All rights reserved.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 3.0 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library.
  17. *
  18. * Additionally to GNU Lesser General Public License you MUST NOT
  19. * static link this library and MUST add link to author
  20. * and source of this library in your application.
  21. *
  22. * Actual LGPL text https://www.gnu.org/licenses/lgpl.html
  23. *
  24. * File: ubxutils.h
  25. */
  26. /*! \file */
  27. #ifndef UBLOXUTILS_H
  28. #define UBLOXUTILS_H
  29. #include "ubxmessage.h"
  30. #ifdef __cplusplus
  31. extern "C"
  32. {
  33. #endif
  34. //Additional API will be replaced with checkMessage(const UBXMsgBuffer* buffer);
  35. extern void fletcherChecksum(unsigned char* buffer, int size, unsigned char* checkSumA, unsigned char* checkSumB);
  36. extern void clearUBXMsgBuffer(const UBXMsgBuffer *buffer);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif // UBLOXUTILS_H