Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bt_l2cap_br_endpoint Struct Reference

BREDR L2CAP Endpoint structure. More...

#include <l2cap.h>

Data Fields

uint16_t cid
 Endpoint Channel Identifier (CID)
 
uint16_t mtu
 Endpoint Maximum Transmission Unit.
 
uint8_t mode
 Endpoint Link Mode.
 
bool optional
 Whether Endpoint Link Mode is optional If the optional is true, the mode could be changed according to the extended feature and peer configuration from L2CAP configuration response and request.
 
uint8_t max_transmit
 Endpoint Maximum Transmit The field is used to set the max retransmission count.
 
uint16_t ret_timeout
 Endpoint Retransmission Timeout The field is configured by \c BT_L2CAP_BR_RET_TIMEOUT The field should be no more than the field monitor_timeout.
 
uint16_t monitor_timeout
 Endpoint Monitor Timeout The field is configured by \c BT_L2CAP_BR_MONITOR_TIMEOUT
 
uint16_t mps
 Endpoint Maximum PDU payload Size.
 
uint16_t max_window
 Endpoint Maximum Window Size MAX supported window size is configured by \c BT_L2CAP_MAX_WINDOW_SIZE.
 
uint8_t fcs
 Endpoint FCS Type The value is defined as BT_L2CAP_BR_FCS_* The default setting should be BT_L2CAP_BR_FCS_16BIT.
 
bool extended_control
 Endpoint Extended Control.
 

Detailed Description

BREDR L2CAP Endpoint structure.

Field Documentation

◆ cid

uint16_t bt_l2cap_br_endpoint::cid

Endpoint Channel Identifier (CID)

◆ extended_control

bool bt_l2cap_br_endpoint::extended_control

Endpoint Extended Control.

If this field is true, and both side support Extended Window size feature, the local will include extended window size option in configuration request packet.

◆ fcs

uint8_t bt_l2cap_br_endpoint::fcs

Endpoint FCS Type The value is defined as BT_L2CAP_BR_FCS_* The default setting should be BT_L2CAP_BR_FCS_16BIT.

For FC and RET, the FCS type should be BT_L2CAP_BR_FCS_16BIT. For ERET and STREAM, the FCS type is optional. If the field is not default value, the local will include FCS option in configuration request packet if both side support FCS Option.

◆ max_transmit

uint8_t bt_l2cap_br_endpoint::max_transmit

Endpoint Maximum Transmit The field is used to set the max retransmission count.

For RET, FC, and ERET, it should be not less 1. For STREAM, it should be 0.

◆ max_window

uint16_t bt_l2cap_br_endpoint::max_window

Endpoint Maximum Window Size MAX supported window size is configured by \c BT_L2CAP_MAX_WINDOW_SIZE.

The field should be no more then CONFIG_BT_L2CAP_MAX_WINDOW_SIZE.

◆ mode

uint8_t bt_l2cap_br_endpoint::mode

Endpoint Link Mode.

The value is defined as BT_L2CAP_BR_LINK_MODE_*

◆ monitor_timeout

uint16_t bt_l2cap_br_endpoint::monitor_timeout

Endpoint Monitor Timeout The field is configured by \c BT_L2CAP_BR_MONITOR_TIMEOUT

◆ mps

uint16_t bt_l2cap_br_endpoint::mps

Endpoint Maximum PDU payload Size.

◆ mtu

uint16_t bt_l2cap_br_endpoint::mtu

Endpoint Maximum Transmission Unit.

◆ optional

bool bt_l2cap_br_endpoint::optional

Whether Endpoint Link Mode is optional If the optional is true, the mode could be changed according to the extended feature and peer configuration from L2CAP configuration response and request.

Otherwise, if the channel configuration process does not meet the set mode, the L2CAP channel will be disconnected.

◆ ret_timeout

uint16_t bt_l2cap_br_endpoint::ret_timeout

Endpoint Retransmission Timeout The field is configured by \c BT_L2CAP_BR_RET_TIMEOUT The field should be no more than the field monitor_timeout.


The documentation for this struct was generated from the following file: