1 // Copyright 2023 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 #pragma once 16 #include "pw_bluetooth_sapphire/internal/host/l2cap/rx_engine.h" 17 18 namespace bt::l2cap::internal { 19 20 // Implements the receiver-side functionality of L2CAP Basic Mode. See Bluetooth 21 // Core Spec v5.0, Volume 3, Part A, Sec 2.4, "Modes of Operation". 22 class BasicModeRxEngine final : public RxEngine { 23 public: 24 BasicModeRxEngine() = default; 25 virtual ~BasicModeRxEngine() = default; 26 27 ByteBufferPtr ProcessPdu(PDU) override; 28 29 private: 30 BT_DISALLOW_COPY_AND_ASSIGN_ALLOW_MOVE(BasicModeRxEngine); 31 }; 32 33 } // namespace bt::l2cap::internal 34