Demo
Dependents: A_TeseoLocationNEW A_TeseoLocation
Middlewares/NMEAUtils.h@5:d91199cfc6a4, 2020-01-31 (annotated)
- Committer:
- HarryKeane
- Date:
- Fri Jan 31 13:24:41 2020 +0000
- Revision:
- 5:d91199cfc6a4
- Parent:
- 0:a77f1f1f8318
Not sure what to write here ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
apalmieri | 0:a77f1f1f8318 | 1 | /** |
apalmieri | 0:a77f1f1f8318 | 2 | ******************************************************************************* |
apalmieri | 0:a77f1f1f8318 | 3 | * @file NMEAUtils.h |
apalmieri | 0:a77f1f1f8318 | 4 | * @author AST / Central Lab |
apalmieri | 0:a77f1f1f8318 | 5 | * @version V1.0.0 |
apalmieri | 0:a77f1f1f8318 | 6 | * @date 19-May-2017 |
apalmieri | 0:a77f1f1f8318 | 7 | * @brief NMEA utilities |
apalmieri | 0:a77f1f1f8318 | 8 | * |
apalmieri | 0:a77f1f1f8318 | 9 | ******************************************************************************* |
apalmieri | 0:a77f1f1f8318 | 10 | * @attention |
apalmieri | 0:a77f1f1f8318 | 11 | * |
apalmieri | 0:a77f1f1f8318 | 12 | * <h2><center>© COPYRIGHT(c) 2017 STMicroelectronics</center></h2> |
apalmieri | 0:a77f1f1f8318 | 13 | * |
apalmieri | 0:a77f1f1f8318 | 14 | * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); |
apalmieri | 0:a77f1f1f8318 | 15 | * You may not use this file except in compliance with the License. |
apalmieri | 0:a77f1f1f8318 | 16 | * You may obtain a copy of the License at: |
apalmieri | 0:a77f1f1f8318 | 17 | * |
apalmieri | 0:a77f1f1f8318 | 18 | * http://www.st.com/software_license_agreement_liberty_v2 |
apalmieri | 0:a77f1f1f8318 | 19 | * |
apalmieri | 0:a77f1f1f8318 | 20 | * Redistribution and use in source and binary forms, with or without modification, |
apalmieri | 0:a77f1f1f8318 | 21 | * are permitted provided that the following conditions are met: |
apalmieri | 0:a77f1f1f8318 | 22 | * 1. Redistributions of source code must retain the above copyright notice, |
apalmieri | 0:a77f1f1f8318 | 23 | * this list of conditions and the following disclaimer. |
apalmieri | 0:a77f1f1f8318 | 24 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
apalmieri | 0:a77f1f1f8318 | 25 | * this list of conditions and the following disclaimer in the documentation |
apalmieri | 0:a77f1f1f8318 | 26 | * and/or other materials provided with the distribution. |
apalmieri | 0:a77f1f1f8318 | 27 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
apalmieri | 0:a77f1f1f8318 | 28 | * may be used to endorse or promote products derived from this software |
apalmieri | 0:a77f1f1f8318 | 29 | * without specific prior written permission. |
apalmieri | 0:a77f1f1f8318 | 30 | * |
apalmieri | 0:a77f1f1f8318 | 31 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
apalmieri | 0:a77f1f1f8318 | 32 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
apalmieri | 0:a77f1f1f8318 | 33 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
apalmieri | 0:a77f1f1f8318 | 34 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
apalmieri | 0:a77f1f1f8318 | 35 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
apalmieri | 0:a77f1f1f8318 | 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
apalmieri | 0:a77f1f1f8318 | 37 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
apalmieri | 0:a77f1f1f8318 | 38 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
apalmieri | 0:a77f1f1f8318 | 39 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
apalmieri | 0:a77f1f1f8318 | 40 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
apalmieri | 0:a77f1f1f8318 | 41 | * |
apalmieri | 0:a77f1f1f8318 | 42 | ******************************************************************************** |
apalmieri | 0:a77f1f1f8318 | 43 | */ |
apalmieri | 0:a77f1f1f8318 | 44 | |
apalmieri | 0:a77f1f1f8318 | 45 | /* Define to prevent recursive inclusion -------------------------------------*/ |
apalmieri | 0:a77f1f1f8318 | 46 | #ifndef __NMEA_UTILS_H |
apalmieri | 0:a77f1f1f8318 | 47 | #define __NMEA_UTILS_H |
apalmieri | 0:a77f1f1f8318 | 48 | |
apalmieri | 0:a77f1f1f8318 | 49 | #ifdef __cplusplus |
apalmieri | 0:a77f1f1f8318 | 50 | extern "C" { |
apalmieri | 0:a77f1f1f8318 | 51 | #endif |
apalmieri | 0:a77f1f1f8318 | 52 | |
apalmieri | 0:a77f1f1f8318 | 53 | #include <stdio.h> |
apalmieri | 0:a77f1f1f8318 | 54 | #include <stdint.h> |
apalmieri | 0:a77f1f1f8318 | 55 | |
apalmieri | 0:a77f1f1f8318 | 56 | #include "NMEAParser.h" |
apalmieri | 0:a77f1f1f8318 | 57 | |
apalmieri | 0:a77f1f1f8318 | 58 | /** @defgroup Middlewares |
apalmieri | 0:a77f1f1f8318 | 59 | * @brief Contains all platform independent modules (eg. NMEA Sentence Parser, ...). |
apalmieri | 0:a77f1f1f8318 | 60 | * @{ |
apalmieri | 0:a77f1f1f8318 | 61 | */ |
apalmieri | 0:a77f1f1f8318 | 62 | |
apalmieri | 0:a77f1f1f8318 | 63 | /** @defgroup ST |
apalmieri | 0:a77f1f1f8318 | 64 | * @{ |
apalmieri | 0:a77f1f1f8318 | 65 | */ |
apalmieri | 0:a77f1f1f8318 | 66 | |
apalmieri | 0:a77f1f1f8318 | 67 | /** @defgroup LIB_NMEA |
apalmieri | 0:a77f1f1f8318 | 68 | * @{ |
apalmieri | 0:a77f1f1f8318 | 69 | */ |
apalmieri | 0:a77f1f1f8318 | 70 | |
apalmieri | 0:a77f1f1f8318 | 71 | /** @defgroup NMEA_UTILS |
apalmieri | 0:a77f1f1f8318 | 72 | * @{ |
apalmieri | 0:a77f1f1f8318 | 73 | */ |
apalmieri | 0:a77f1f1f8318 | 74 | |
apalmieri | 0:a77f1f1f8318 | 75 | /** @addtogroup NMEA_UTILS_PUBLIC_FUNCTIONS |
apalmieri | 0:a77f1f1f8318 | 76 | * @{ |
apalmieri | 0:a77f1f1f8318 | 77 | */ |
apalmieri | 0:a77f1f1f8318 | 78 | void scan_utc (char* utc_str, UTC_Info* utc); |
apalmieri | 0:a77f1f1f8318 | 79 | void scan_xy (char* xy_str, uint8_t offset, Coords* xyz); |
apalmieri | 0:a77f1f1f8318 | 80 | /** |
apalmieri | 0:a77f1f1f8318 | 81 | * @} |
apalmieri | 0:a77f1f1f8318 | 82 | */ |
apalmieri | 0:a77f1f1f8318 | 83 | |
apalmieri | 0:a77f1f1f8318 | 84 | /** |
apalmieri | 0:a77f1f1f8318 | 85 | * @} |
apalmieri | 0:a77f1f1f8318 | 86 | */ |
apalmieri | 0:a77f1f1f8318 | 87 | |
apalmieri | 0:a77f1f1f8318 | 88 | /** |
apalmieri | 0:a77f1f1f8318 | 89 | * @} |
apalmieri | 0:a77f1f1f8318 | 90 | */ |
apalmieri | 0:a77f1f1f8318 | 91 | |
apalmieri | 0:a77f1f1f8318 | 92 | /** |
apalmieri | 0:a77f1f1f8318 | 93 | * @} |
apalmieri | 0:a77f1f1f8318 | 94 | */ |
apalmieri | 0:a77f1f1f8318 | 95 | |
apalmieri | 0:a77f1f1f8318 | 96 | /** |
apalmieri | 0:a77f1f1f8318 | 97 | * @} |
apalmieri | 0:a77f1f1f8318 | 98 | */ |
apalmieri | 0:a77f1f1f8318 | 99 | |
apalmieri | 0:a77f1f1f8318 | 100 | #ifdef __cplusplus |
apalmieri | 0:a77f1f1f8318 | 101 | } |
apalmieri | 0:a77f1f1f8318 | 102 | #endif |
apalmieri | 0:a77f1f1f8318 | 103 | |
apalmieri | 0:a77f1f1f8318 | 104 | #endif |