pub struct MaskWriteRegisterResponse {
pub address: u16,
pub and_mask: u16,
pub or_mask: u16,
}Expand description
FC22 Mask Write Register response echoing the address and masks applied.
The server applies the formula: result = (current AND and_mask) OR (or_mask AND NOT and_mask).
Fields§
§address: u16Address of the register that was modified.
and_mask: u16AND mask that was applied.
or_mask: u16OR mask that was applied.
Implementations§
Trait Implementations§
Source§impl Clone for MaskWriteRegisterResponse
impl Clone for MaskWriteRegisterResponse
Source§fn clone(&self) -> MaskWriteRegisterResponse
fn clone(&self) -> MaskWriteRegisterResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaskWriteRegisterResponse
impl Debug for MaskWriteRegisterResponse
impl Copy for MaskWriteRegisterResponse
impl Eq for MaskWriteRegisterResponse
impl StructuralPartialEq for MaskWriteRegisterResponse
Auto Trait Implementations§
impl Freeze for MaskWriteRegisterResponse
impl RefUnwindSafe for MaskWriteRegisterResponse
impl Send for MaskWriteRegisterResponse
impl Sync for MaskWriteRegisterResponse
impl Unpin for MaskWriteRegisterResponse
impl UnsafeUnpin for MaskWriteRegisterResponse
impl UnwindSafe for MaskWriteRegisterResponse
Blanket Implementations§
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