Merge pull request #26 from danbev/bdc_version_const
Add constants for BDC_VERSION
This commit is contained in:
commit
cb6d1fc514
@ -800,7 +800,7 @@ where
|
|||||||
};
|
};
|
||||||
|
|
||||||
let bcd_header = BcdHeader {
|
let bcd_header = BcdHeader {
|
||||||
flags: 0x20,
|
flags: BDC_VERSION << BDC_VERSION_SHIFT,
|
||||||
priority: 0,
|
priority: 0,
|
||||||
flags2: 0,
|
flags2: 0,
|
||||||
data_offset: 0,
|
data_offset: 0,
|
||||||
|
@ -53,6 +53,9 @@ pub struct CdcHeader {
|
|||||||
}
|
}
|
||||||
impl_bytes!(CdcHeader);
|
impl_bytes!(CdcHeader);
|
||||||
|
|
||||||
|
pub const BDC_VERSION: u8 = 2;
|
||||||
|
pub const BDC_VERSION_SHIFT: u8 = 4;
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
Loading…
Reference in New Issue
Block a user