Public Attributes | List of all members
ble_l2cap_lecb_sdu_t Struct Reference
BLE » Logical Link Control and Adaptation Protocol (L2CAP) » Structures

SDU packet parameter. More...

`#include <ble_l2cap.h>`

## Public Attributes
uint16_t | cid
uint16_t | credits
uint16_t | length
uint8_t * | data

## Detailed Description

SDU packet parameter.

Note
  The length should be less than peer_mtu when sending sdu packet.
  The credits is 0 if this packet is being sent, or it represents the number of credits consumed by this sdu if this packet is received.
  When the application receives a sdu, it should firstly copy this sdu packet before handling it, because the stack will free it after invoking the callback function.
  Similarly, the application should free the packet if it is malloced after invoking the function to send sdu packet.

Definition at line 122 of file ble_l2cap.h.

## Member Data Documentation

## ◆ cid

uint16_t ble_l2cap_lecb_sdu_t::cid

The local source channel.

Definition at line 124 of file ble_l2cap.h.

## ◆ credits

uint16_t ble_l2cap_lecb_sdu_t::credits

The credits is 0 if this packet is being sent, otherwise it represents the number of credits consumed by the sdu.

Definition at line 125 of file ble_l2cap.h.

## ◆ data

uint8_t* ble_l2cap_lecb_sdu_t::data

The data of this sdu packet.

Definition at line 127 of file ble_l2cap.h.

## ◆ length

uint16_t ble_l2cap_lecb_sdu_t::length

The lenght of data.

Definition at line 126 of file ble_l2cap.h.

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

- ble_l2cap.h