Struct bluetooth_hci::Opcode[][src]

pub struct Opcode(pub u16);

Newtype wrapper for a Bluetooth Opcode. Opcodes are used to indicate which command to send to the Controller as well as which command results are returned by the Command Complete and Command Status events.

Methods

impl Opcode
[src]

Create an opcode from the OGF (Opcode group field) and OCF (Opcode command field).

Return the OGF (Opcode group field) of the opcode.

Return the OCF (Opcode command field) of the opcode.

Trait Implementations

impl Clone for Opcode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Opcode
[src]

impl Debug for Opcode
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Opcode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Opcode
[src]

Auto Trait Implementations

impl Send for Opcode

impl Sync for Opcode