Struct bluetooth_hci::host::uart::CommandHeader [−][src]
pub struct CommandHeader { /* fields omitted */ }
Header for HCI Commands.
Trait Implementations
impl HciHeader for CommandHeader
[src]
impl HciHeader for CommandHeader
const HEADER_LENGTH: usize
HEADER_LENGTH: usize = 4
Defines the length of the packet header. With the packet byte, this is 4. Without it, the length shall be 3. Read more
fn new(opcode: Opcode, param_len: usize) -> CommandHeader
[src]
fn new(opcode: Opcode, param_len: usize) -> CommandHeader
Returns a new header with the given opcode and parameter length.
fn into_bytes(&self, buffer: &mut [u8])
[src]
fn into_bytes(&self, buffer: &mut [u8])
Serialize the header into the given buffer, in Bluetooth byte order (little-endian). Read more
Auto Trait Implementations
impl Send for CommandHeader
impl Send for CommandHeader
impl Sync for CommandHeader
impl Sync for CommandHeader