ble_ots_l2cap_s

nRF5 SDK v14.1.0

The structure holding the l2cap connection oriented channels state. More...

#include <ble_ots.h>

Public Types

enum {
NOT_CONNECTED ,
CONNECTED ,
SENDING ,
RECEIVING
}

Data Fields

ble_ots_l2cap_evt_handler_t evt_handler
ble_ots_oacp_t * p_ots_oacp
enum ble_ots_l2cap_s:: { ... } state
ble_data_t tx_transfer_buffer
ble_l2cap_ch_rx_params_t rx_params
ble_l2cap_ch_tx_params_t tx_params
uint16_t remaining_bytes
uint16_t transfered_bytes
uint16_t transfer_len
uint16_t local_cid
uint16_t conn_mtu
uint16_t conn_mps

Detailed Description

The structure holding the l2cap connection oriented channels state.

Field Documentation

uint16_t ble_ots_l2cap_s::conn_mps

MPS defines the maximum payload size in bytes.

uint16_t ble_ots_l2cap_s::conn_mtu

The maximum transmission unit, that is the number of packets that can be sent or received.

uint16_t ble_ots_l2cap_s::local_cid

Connection id of the current connection.

uint16_t ble_ots_l2cap_s::remaining_bytes

The number of remaining bytes in the current transfer.

uint16_t ble_ots_l2cap_s::transfer_len

The total number of bytes in the current transfer.

  • components/ble/ble_services/experimental_ble_ots/ble_ots.h