Adafruit uBlox Library
Classes | Macros | Typedefs
Adafruit_UBX.h File Reference
#include "Adafruit_uBlox_Ubx_Messages.h"
#include "Adafruit_uBlox_typedef.h"
#include <Arduino.h>
#include <Stream.h>

Go to the source code of this file.

Classes

class  Adafruit_UBX
 Class for parsing UBX protocol messages from u-blox GPS/RTK modules. More...
 

Macros

#define UBX_SYNC_CHAR_1   0xB5
 First UBX protocol sync char (�)
 
#define UBX_SYNC_CHAR_2   0x62
 Second UBX protocol sync char (b)
 
#define UBX_ACK_NAK   0x00
 Message Not Acknowledged.
 
#define UBX_ACK_ACK   0x01
 Message Acknowledged.
 

Typedefs

typedef void(* UBXMessageCallback) (uint8_t msgClass, uint8_t msgId, uint16_t payloadLen, uint8_t *payload)
 Callback function type for UBX messages - defined at global scope so other classes can use it. More...
 

Detailed Description

Arduino library for parsing UBX protocol from u-blox GPS/RTK modules.

This library can use any Stream object as input (UART, DDC, or other).

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.

MIT license, all text here must be included in any redistribution.

Typedef Documentation

◆ UBXMessageCallback

typedef void(* UBXMessageCallback) (uint8_t msgClass, uint8_t msgId, uint16_t payloadLen, uint8_t *payload)

Callback function type for UBX messages - defined at global scope so other classes can use it.

Parameters
msgClassMessage class
msgIdMessage ID
payloadLenLength of payload data
payloadPointer to payload data