nrf-softdevice

Crates

0.1.0

Versions

s140

Flavors

Module 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§

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

Enums§

RxError
SetupError
TxError

Traits§

Packet
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.