SELKIELogger  1.0.0
GPSCommands.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 Swansea University
3  *
4  * This file is part of the SELKIELogger suite of tools.
5  *
6  * SELKIELogger is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation, either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * SELKIELogger is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this SELKIELogger product.
18  * If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef SELKIELoggerGPS_Commands
22 #define SELKIELoggerGPS_Commands
23 
29 #include <stdbool.h>
30 #include <stdint.h>
31 
32 #include "GPSTypes.h"
33 
42 bool ubx_setBaudRate(const int handle, const uint32_t baud);
43 
45 bool ubx_setMessageRate(const int handle, const uint8_t msgClass, const uint8_t msgID, const uint8_t rate);
46 
48 bool ubx_pollMessage(const int handle, const uint8_t msgClass, const uint8_t msgID);
49 
51 bool ubx_enableGalileo(const int handle);
52 
54 bool ubx_setNavigationRate(const int handle, const uint16_t interval, const uint16_t outputRate);
55 
57 bool ubx_enableLogMessages(const int handle);
58 
60 bool ubx_disableLogMessages(const int handle);
61 
63 bool ubx_setI2CAddress(const int handle, const uint8_t addr);
64 
66 #endif
bool ubx_pollMessage(const int handle, const uint8_t msgClass, const uint8_t msgID)
Request specific message by class and ID.
Definition: GPSCommands.c:128
bool ubx_setI2CAddress(const int handle, const uint8_t addr)
Set I2C address.
Definition: GPSCommands.c:250
bool ubx_setNavigationRate(const int handle, const uint16_t interval, const uint16_t outputRate)
Set UBX navigation calculation and reporting rate.
Definition: GPSCommands.c:171
bool ubx_enableGalileo(const int handle)
Enable Galileo constellation use.
Definition: GPSCommands.c:140
bool ubx_enableLogMessages(const int handle)
Enable log/information messages from GPS device.
Definition: GPSCommands.c:199
bool ubx_disableLogMessages(const int handle)
Disable log/information messages from GPS device.
Definition: GPSCommands.c:224
bool ubx_setMessageRate(const int handle, const uint8_t msgClass, const uint8_t msgID, const uint8_t rate)
Send UBX rate command to enable/disable message types.
Definition: GPSCommands.c:95
bool ubx_setBaudRate(const int handle, const uint32_t baud)
Send UBX port configuration to switch baud rate.
Definition: GPSCommands.c:53