Struct HostBufferSize

Source
pub struct HostBufferSize {
    pub acl_data_packet_length: u16,
    pub sync_data_packet_length: u8,
    pub total_acl_data_packets: u16,
    pub total_sync_data_packets: u16,
}
Expand description

Parameters for the host_buffer_size commad

§Note:

The Host ACL Data Packet Length and Host Synchronous Data Packet Length command parameters do not include the length of the HCI Data Packet header.

See Bluetooth spec. v.5.4 [Vol 4, Part E, 7.3.39].

Fields§

§acl_data_packet_length: u16

Maximum length (in octets) of the data portion of each HCI ACL Data Packet that the host is able to accept.

this parameter will be used to determine the size of the L2CAP segments contained in the ACL Data Packets, which are transferred from the Controller to the Host.

Values:

  • 251 .. 65535
§sync_data_packet_length: u8

Maximum length (in octets) of the data portion of each HCI Synchronous Data Packet that the Host is able to accept. NOT USED

This parameter is used to determine the maximum size of HCI Synchronous Data Packets. Both the Host and the Controller shall support command and event packets, zhere the data portion (excluding header) contained in the packet is 255 octets is size.

§total_acl_data_packets: u16

The total number of HCI ACL Data Packets that can be stored in the data buffers of the Host.

This parameter contains the total number of HCI ACL Data Packets that can be stored in the data buffers of the Host. The Controller will determine how the buffers are to be divided between different Connection Handles.

§total_sync_data_packets: u16

Total number of HCI Synchronous Data Packets that can be stored in the data buffers of the Host. NOT USED

This parameter gives the save information for HCI Synchronous Data Packets.

Trait Implementations§

Source§

impl Clone for HostBufferSize

Source§

fn clone(&self) -> HostBufferSize

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HostBufferSize

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for HostBufferSize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.