A driver for the MAX8U GPS by uBlox. Provides core functionality. Communicates through I2C.
Embed:
(wiki syntax)
Show/hide line numbers
MAX8UConstants.h
00001 // 00002 // Constants for the MAX-8U 00003 // 00004 00005 #ifndef HAMSTER_MAX8UCONSTANTS_H 00006 #define HAMSTER_MAX8UCONSTANTS_H 00007 00008 // Characters at the start of every UBX message 00009 #define UBX_SYNC_CHAR_1 0xB5 00010 #define UBX_SYNC_CHAR_2 0x62 00011 00012 // indicies into UBX messages 00013 #define UBX_BYTE_CLASS 2 00014 #define UBX_BYTE_ID 3 00015 00016 #define UBX_DATA_OFFSET 6 // start byte of message data 00017 #define UBX_HEADER_FOOTER_LENGTH 8 // length of message header and footer 00018 00019 // class ACK 00020 #define UBX_CLASS_ACK 0x5 00021 #define UBX_ACK_NACK 0x0 00022 #define UBX_ACK_ACK 0x1 00023 00024 // class CFG 00025 #define UBX_CLASS_CFG 0x6 00026 #define UBX_CFG_PRT 0x0 00027 #define UBX_CFG_MSG 0x1 00028 #define UBX_CFG_RATE 0x8 00029 #define UBX_CFG_CFG 0x9 00030 #define UBX_CFG_GNSS 0x3E 00031 00032 // class NAV 00033 #define UBX_CLASS_NAV 0x1 00034 #define UBX_NAV_POSLLH 0x2 // LLH stands for Latitude-Longitude-Height 00035 #define UBX_NAV_SOL 0x06 00036 #define UBX_NAV_TIMEUTC 0x21 00037 #define UBX_NAV_SAT 0x35 00038 #define UBX_NAV_VELNED 0x12 00039 00040 // class MON 00041 #define UBX_CLASS_MON 0xA 00042 #define UBX_MON_VER 0x4 00043 #define UBX_MON_HW 0x9 00044 00045 #define UBX_MESSAGE_START_CHAR 0xB5 00046 #define NMEA_MESSAGE_START_CHAR '$' 00047 00048 #endif //HAMSTER_MAX8UCONSTANTS_H
Generated on Thu Jul 21 2022 02:08:23 by 1.7.2