pub struct Control(pub u8);Expand description
Control field for EBDS messages
Tuple Fields§
§0: u8Implementations§
Source§impl Control
impl Control
Sourcepub fn device_type(&self) -> u8
pub fn device_type(&self) -> u8
Device type, see DeviceType
Sourcepub fn message_type(&self) -> u8
pub fn message_type(&self) -> u8
Message type, see MessageType
Sourcepub fn set_acknak(&mut self, value: bool)
pub fn set_acknak(&mut self, value: bool)
AckNak bit for message acknowledgement, see AckNak
Sourcepub fn set_device_type(&mut self, value: u8)
pub fn set_device_type(&mut self, value: u8)
Device type, see DeviceType
Sourcepub fn set_message_type(&mut self, value: u8)
pub fn set_message_type(&mut self, value: u8)
Message type, see MessageType
Trait Implementations§
Source§impl<T> BitRangeMut<T> for Controlwhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for Controlwhere
u8: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more