Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_rfcomm_dlc Struct Reference

RFCOMM DLC structure. More...

#include <rfcomm.h>

Data Fields

struct bt_rfcomm_dlc_opsops
 Pointer to the application callback operations for this DLC.
bt_security_t required_sec_level
 Minimum security level required before this DLC may be established.
uint16_t mtu
 Maximum Transmission Unit for this DLC in bytes.
uint8_t rx_credit_limit
 Requested initial number of receive credits for this DLC.

Detailed Description

RFCOMM DLC structure.

Field Documentation

◆ mtu

uint16_t bt_rfcomm_dlc::mtu

Maximum Transmission Unit for this DLC in bytes.

Negotiated during the Parameter Negotiation (PN) procedure. Outgoing bt_rfcomm_dlc_send buffers must not exceed this value.

◆ ops

struct bt_rfcomm_dlc_ops* bt_rfcomm_dlc::ops

Pointer to the application callback operations for this DLC.

◆ required_sec_level

bt_security_t bt_rfcomm_dlc::required_sec_level

Minimum security level required before this DLC may be established.

◆ rx_credit_limit

uint8_t bt_rfcomm_dlc::rx_credit_limit

Requested initial number of receive credits for this DLC.

Sets how many UIH frames the local side is willing to accept from the remote after the DLC is established. The stack limits this value to MIN((BT_BUF_ACL_RX_COUNT - 1), 255) before use. If the field is 0, the stack uses the internal default MIN((BT_BUF_ACL_RX_COUNT - 1), 255). The result is written back to the field. Also the value of field will be limited to 7 when sending in Parameter Negotiation (PN) command/response.

Note
If the value exceeds MIN((BT_BUF_ACL_RX_COUNT - 1), 255), it will be limited to MIN((BT_BUF_ACL_RX_COUNT - 1), 255).
This field can only be modified when the DLC is in an unconnected state. This means that from the time bt_rfcomm_server::accept returns until bt_rfcomm_dlc_ops::disconnected is called, it cannot be modified any more.

Only meaningful when CFC is enabled.


The documentation for this struct was generated from the following file:
  • include/zephyr/bluetooth/classic/rfcomm.h