Module nrf_softdevice::ble::l2cap

source ·
Expand description

Link-Layer Control and Adaptation Protocol

This module allows you to establish L2CAP connection oriented channels with the peer.

Unless configured with the "ble-l2cap-credit-workaround" feature, the driver will use credit based control flow, giving the peer a limited number of messages they can send. Only if the receive buffer has enough space more credits will be issued to the peer. Otherwise the peer has to wait before it can send more messages.

Structs

  • An L2CAP connection oriented channel.
  • Configuration for an L2CAP channel.
  • The L2CAP driver. Must be supplied with an implementation of Packet.

Enums

Traits

  • A Packet is a byte buffer for packet data. Similar to a Vec<u8> it has a length and a capacity. The capacity however is the fixed value MTU.