Transfer structure that is used for the L2CAP data channels.

Public Attributes#

sl_slist_node_t

Node for linked lists.

Link to callback functions - Mandatory.

uint16_t

Channel identifier - automatically assigned.

uint16_t

The Maximum Service Data Unit size the local channel endpoint can accept - Range: 23 to 65533. - Mandatory.

uint16_t

The maximum PDU payload size the local channel endpoint can accept - Range:23 to 252. - Mandatory.

uint16_t

Current SDU for the actual transfer.

uint16_t

Current data pointer within the SDU.

uint16_t

The protocol/services implemented by the local channel endpoint - Mandatory.

uint16_t

The initial credit value of the local channel endpoint, i.e., number of PDUs the peer channel endpoint can send. - Mandatory for responder.

uint32_t

Total length of data to be sent - Mandatory for initiator.

uint32_t

Offset to send data from.

uint32_t

Used to indicate the total size of data transmitted.

uint8_t

The connection handle - Mandatory.

sl_status_t

Channel error code.

Transfer mode: initiator/responder - Mandatory.

Public Attribute Documentation#

node#

sl_slist_node_t sl_bt_l2cap_transfer_transfer_s::node

Node for linked lists.


Definition at line 132 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

callbacks#

sl_bt_l2cap_transfer_callbacks_t* sl_bt_l2cap_transfer_transfer_s::callbacks

Link to callback functions - Mandatory.


Definition at line 133 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

cid#

uint16_t sl_bt_l2cap_transfer_transfer_s::cid

Channel identifier - automatically assigned.


Definition at line 134 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

max_sdu#

uint16_t sl_bt_l2cap_transfer_transfer_s::max_sdu

The Maximum Service Data Unit size the local channel endpoint can accept - Range: 23 to 65533. - Mandatory.


Definition at line 135 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

max_pdu#

uint16_t sl_bt_l2cap_transfer_transfer_s::max_pdu

The maximum PDU payload size the local channel endpoint can accept - Range:23 to 252. - Mandatory.


Definition at line 136 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

sdu_size#

uint16_t sl_bt_l2cap_transfer_transfer_s::sdu_size

Current SDU for the actual transfer.


Definition at line 137 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

sdu_pointer#

uint16_t sl_bt_l2cap_transfer_transfer_s::sdu_pointer

Current data pointer within the SDU.


Definition at line 138 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

spsm#

uint16_t sl_bt_l2cap_transfer_transfer_s::spsm

The protocol/services implemented by the local channel endpoint - Mandatory.


Definition at line 139 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

credit#

uint16_t sl_bt_l2cap_transfer_transfer_s::credit

The initial credit value of the local channel endpoint, i.e., number of PDUs the peer channel endpoint can send. - Mandatory for responder.


Definition at line 140 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

data_length#

uint32_t sl_bt_l2cap_transfer_transfer_s::data_length

Total length of data to be sent - Mandatory for initiator.


Definition at line 141 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

data_offset#

uint32_t sl_bt_l2cap_transfer_transfer_s::data_offset

Offset to send data from.


Definition at line 142 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

pointer#

uint32_t sl_bt_l2cap_transfer_transfer_s::pointer

Used to indicate the total size of data transmitted.


Definition at line 143 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

connection#

uint8_t sl_bt_l2cap_transfer_transfer_s::connection

The connection handle - Mandatory.


Definition at line 144 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

channel_error#

sl_status_t sl_bt_l2cap_transfer_transfer_s::channel_error

Channel error code.


Definition at line 145 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h

mode#

sl_bt_l2cap_transfer_transfer_mode_t sl_bt_l2cap_transfer_transfer_s::mode

Transfer mode: initiator/responder - Mandatory.


Definition at line 146 of file common/l2cap_transfer/inc/sl_bt_l2cap_transfer.h