Skip to content

Commit

Permalink
add support for UBX-SEC-UNIQID (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: gwbres <guillaume.bressaix@gmail.com>
  • Loading branch information
Dushistov and gwbres authored Sep 4, 2023
1 parent 40d6278 commit 7d4da72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ublox/src/ubx_packets/packets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3540,6 +3540,15 @@ impl<'a> core::iter::Iterator for RxmRawxInfoIter<'a> {
}
}

/// This message is used to retrieve a unique chip identifier
#[ubx_packet_recv]
#[ubx(class = 0x27, id = 0x03, fixed_payload_len = 9)]
struct SecUniqId {
version: u8,
reserved1: [u8; 3],
unique_id: [u8; 5],
}

define_recv_packets!(
enum PacketRef {
_ = UbxUnknownPacketRef,
Expand Down Expand Up @@ -3594,6 +3603,7 @@ define_recv_packets!(
RxmSfrbx,
EsfRaw,
TimSvin,
SecUniqId,
}
);

Expand Down

0 comments on commit 7d4da72

Please sign in to comment.