SELKIELogger
1.0.0
|
Functions | |
bool | ubx_setBaudRate (const int handle, const uint32_t baud) |
Send UBX port configuration to switch baud rate. More... | |
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. More... | |
bool | ubx_pollMessage (const int handle, const uint8_t msgClass, const uint8_t msgID) |
Request specific message by class and ID. More... | |
bool | ubx_enableGalileo (const int handle) |
Enable Galileo constellation use. More... | |
bool | ubx_setNavigationRate (const int handle, const uint16_t interval, const uint16_t outputRate) |
Set UBX navigation calculation and reporting rate. More... | |
bool | ubx_enableLogMessages (const int handle) |
Enable log/information messages from GPS device. More... | |
bool | ubx_disableLogMessages (const int handle) |
Disable log/information messages from GPS device. More... | |
bool | ubx_setI2CAddress (const int handle, const uint8_t addr) |
Set I2C address. More... | |
Send commands to a connected GPS module
bool ubx_disableLogMessages | ( | const int | handle | ) |
Disable log/information messages from GPS device.
Disables options set by ubx_enableLogMessages()
[in] | handle | File descriptor to write command to |
Definition at line 224 of file GPSCommands.c.
bool ubx_enableGalileo | ( | const int | handle | ) |
Enable Galileo constellation use.
Not making this configurable for now, as the "proper" method would need a bit more faff
[in] | handle | File descriptor to write command to |
Definition at line 140 of file GPSCommands.c.
bool ubx_enableLogMessages | ( | const int | handle | ) |
Enable log/information messages from GPS device.
Allows us to log warnings and information from the GPS module, largely during the startup and configuration process.
Enables error, warning and information messages on UART1 only and disables message output on all other ports.
[in] | handle | File descriptor to write command to |
Definition at line 199 of file GPSCommands.c.
bool ubx_pollMessage | ( | const int | handle, |
const uint8_t | msgClass, | ||
const uint8_t | msgID | ||
) |
Request specific message by class and ID.
Some UBX message types can be polled by sending a message with the message class and ID but zero length.
Not valid for all types, check U-Blox manual for information
[in] | handle | File descriptor to write command to |
[in] | msgClass | UBX Message Class |
[in] | msgID | UBX Message ID/Type |
Definition at line 128 of file GPSCommands.c.
bool ubx_setBaudRate | ( | const int | handle, |
const uint32_t | baud | ||
) |
Send UBX port configuration to switch baud rate.
Sends a UBX protocol CFG-PRT message, configuring UART 1 for the specified baud rate with all protocols permitted as input and only UBX messages permitted as output.
No configuration for UBX message types is performed here, so the GPS may just sit silently until we configure the messages we want as output (depending on default configuration).
[in] | handle | File descriptor to write command to |
[in] | baud | Desired baud rate - will be converted with baud_to_flag() |
Definition at line 53 of file GPSCommands.c.
bool ubx_setI2CAddress | ( | const int | handle, |
const uint8_t | addr | ||
) |
Set I2C address.
Set I2C address for this GPS module
[in] | handle | File descriptor to write command to |
[in] | addr | New I2C address |
Definition at line 250 of file GPSCommands.c.
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.
Sends a UBX protcol CFG-MSG message with the provided message class, type and rate.
The message is output very "rate" updates/calculations on UART1 and disabled on all other outputs.
[in] | handle | File descriptor to write command to |
[in] | msgClass | UBX Message Class |
[in] | msgID | UBX Message ID/Type |
[in] | rate | Requested message rate (0 to disable) |
Definition at line 95 of file GPSCommands.c.
bool ubx_setNavigationRate | ( | const int | handle, |
const uint16_t | interval, | ||
const uint16_t | outputRate | ||
) |
Set UBX navigation calculation and reporting rate.
Configures the GPS navigation calculation and reporting rate.
Can be overridden by power saving settings
[in] | handle | File descriptor to write command to |
[in] | interval | Calculation interval in milliseconds |
[in] | outputRate | Output solution every 'outputRate' calculations |
Definition at line 171 of file GPSCommands.c.