l2cap.h (d84e866fb87b02372d5534d4932cd5fa66d5315b) | l2cap.h (f0fb4cd727a7cb54eb1a1c2b1dc9efdf67d42fde) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118typedef struct { 119 uint8_t tx_seq; 120 uint16_t pos; 121 uint16_t sdu_length; 122} l2cap_ertm_rx_packet_state_t; 123 124typedef struct { 125 uint8_t tx_seq; | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 109 unchanged lines hidden (view full) --- 118typedef struct { 119 uint8_t tx_seq; 120 uint16_t pos; 121 uint16_t sdu_length; 122} l2cap_ertm_rx_packet_state_t; 123 124typedef struct { 125 uint8_t tx_seq; |
126 uint16_t len; |
|
126} l2cap_ertm_tx_packet_state_t; 127 128 129// info regarding an actual connection 130typedef struct { 131 // linked list - assert: first field 132 btstack_linked_item_t item; 133 --- 71 unchanged lines hidden (view full) --- 205 uint8_t remote_tx_window_size; 206 207 uint8_t local_max_transmit; 208 uint8_t remote_max_transmit; 209 210 // if ertm is not mandatory, allow fallback to L2CAP Basic Mode - flag 211 uint8_t ertm_mandatory; 212 | 127} l2cap_ertm_tx_packet_state_t; 128 129 130// info regarding an actual connection 131typedef struct { 132 // linked list - assert: first field 133 btstack_linked_item_t item; 134 --- 71 unchanged lines hidden (view full) --- 206 uint8_t remote_tx_window_size; 207 208 uint8_t local_max_transmit; 209 uint8_t remote_max_transmit; 210 211 // if ertm is not mandatory, allow fallback to L2CAP Basic Mode - flag 212 uint8_t ertm_mandatory; 213 |
213 // receiver: send RR frame - flag 214 uint8_t send_supervisor_frame_receiver_ready; | 214 // sender: buffer index to store tx packet 215 uint8_t tx_write_index; |
215 | 216 |
217 // sender: buffer index of packet to send next 218 uint8_t tx_read_index; 219 |
|
216 // sender: next seq nr used for sending 217 uint8_t next_tx_seq; 218 | 220 // sender: next seq nr used for sending 221 uint8_t next_tx_seq; 222 |
223 // receiver: send RR frame - flag 224 uint8_t send_supervisor_frame_receiver_ready; 225 |
|
219 // receiver: value of tx_seq in next expected i-frame 220 uint8_t expected_tx_seq; 221 222 // receiver: request transmiissoin with tx_seq = req_seq and ack up to and including req_seq 223 uint8_t req_seq; 224 225 // max um out-of-order packets // tx_window 226 uint8_t num_rx_buffers; --- 294 unchanged lines hidden --- | 226 // receiver: value of tx_seq in next expected i-frame 227 uint8_t expected_tx_seq; 228 229 // receiver: request transmiissoin with tx_seq = req_seq and ack up to and including req_seq 230 uint8_t req_seq; 231 232 // max um out-of-order packets // tx_window 233 uint8_t num_rx_buffers; --- 294 unchanged lines hidden --- |