pub struct Command {
pub address: Address,
pub command_type: CommandType,
pub sub_address: SubAddress,
pub word_count: u16,
}Expand description
A MIL-STD-1553B command word
Format:
- Bits 19-16: Address (0-31)
- Bit 15: Transmit/Receive flag
- Bits 14-10: Sub-address or Mode Code
- Bits 9-0: Data word count or mode code data
Fields§
§address: AddressAddress of the target device
command_type: CommandTypeTransmit or Receive
sub_address: SubAddressSub-address (5 bits)
word_count: u16Data word count (10 bits, 0-20, 0 means 32 words)
Implementations§
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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