Struct stm32wb_hci::host::uart::CommandHeader
source · pub struct CommandHeader { /* private fields */ }Expand description
Header for HCI Commands.
Trait Implementations§
source§impl HciHeader for CommandHeader
impl HciHeader for CommandHeader
source§const HEADER_LENGTH: usize = 4usize
const HEADER_LENGTH: usize = 4usize
Defines the length of the packet header. With the packet byte, this is 4. Without it, the
length shall be 3.
source§fn new(opcode: Opcode, param_len: usize) -> CommandHeader
fn new(opcode: Opcode, param_len: usize) -> CommandHeader
Returns a new header with the given opcode and parameter length.
source§fn copy_into_slice(&self, buffer: &mut [u8])
fn copy_into_slice(&self, buffer: &mut [u8])
Serialize the header into the given buffer, in Bluetooth byte order (little-endian). Read more
Auto Trait Implementations§
impl RefUnwindSafe for CommandHeader
impl Send for CommandHeader
impl Sync for CommandHeader
impl Unpin for CommandHeader
impl UnwindSafe for CommandHeader
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