Skip to content

Commit

Permalink
Message structs for UBX-ACK
Browse files Browse the repository at this point in the history
  • Loading branch information
flybrianfly committed Dec 28, 2021
1 parent 9e1da67 commit 468c1b9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/ubx_ack.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,34 @@

#include <cstdint>
#include <cstddef>
#include "ubx_defs.h"

namespace bfs {

/*
* Defs for UBX-ACK messages
*/

/* ID's */
static constexpr uint8_t UBX_ACK_NACK_ID_ = 0x00;
/* UBX-ACK IDs */
static constexpr uint8_t UBX_ACK_ACK_ID_ = 0x01;
static constexpr uint8_t UBX_ACK_NAK_ID_ = 0x00;
/* UBX-ACK messages */
struct UbxAckAck {
static constexpr uint8_t cls = UBX_ACK_CLS_;
static constexpr uint8_t id = UBX_ACK_ACK_ID_;
static constexpr uint16_t len = 2;
struct {
U1 cls_id;
U1 msg_id;
} payload;
};
struct UbxAckNak {
static constexpr uint8_t cls = UBX_ACK_CLS_;
static constexpr uint8_t id = UBX_ACK_NAK_ID_;
static constexpr uint16_t len = 2;
struct {
U1 cls_id;
U1 msg_id;
} payload;
};

} // namespace bfs

Expand Down
1 change: 1 addition & 0 deletions src/ubx_nav.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <cstdint>
#include <cstddef>
#include "ubx_defs.h"

namespace bfs {
/*
Expand Down

0 comments on commit 468c1b9

Please sign in to comment.