aboutsummaryrefslogtreecommitdiff
path: root/src/structs.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-09-26 15:07:53 +0200
committerGitHub <[email protected]>2022-09-26 15:07:53 +0200
commitcb6d1fc514f01e9206f13eacce3be0bcaae2ec44 (patch)
tree8d04ada640912a9eda352b866a04a3e7cdbdc46b /src/structs.rs
parent7bbd4671d34dc80b44cbee2152de7d0b61056c01 (diff)
parent3b04ef265c0f47b160ca8e89ef0b8fefc4b7e6ec (diff)
Merge pull request #26 from danbev/bdc_version_const
Add constants for BDC_VERSION
Diffstat (limited to 'src/structs.rs')
-rw-r--r--src/structs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/structs.rs b/src/structs.rs
index ed5fc18df..6d4525a46 100644
--- a/src/structs.rs
+++ b/src/structs.rs
@@ -53,6 +53,9 @@ pub struct CdcHeader {
53} 53}
54impl_bytes!(CdcHeader); 54impl_bytes!(CdcHeader);
55 55
56pub const BDC_VERSION: u8 = 2;
57pub const BDC_VERSION_SHIFT: u8 = 4;
58
56#[derive(Clone, Copy)] 59#[derive(Clone, Copy)]
57#[cfg_attr(feature = "defmt", derive(defmt::Format))] 60#[cfg_attr(feature = "defmt", derive(defmt::Format))]
58#[repr(C)] 61#[repr(C)]