16#include "pw_async2/dispatcher.h"
17#include "pw_async2/once_sender.h"
18#include "pw_bluetooth/internal/raii_ptr.h"
19#include "pw_channel/channel.h"
20#include "pw_result/result.h"
22namespace pw::bluetooth::low_energy {
27enum class Psm : uint16_t {};
52 virtual void Release() = 0;
55 using Ptr = internal::RaiiPtr<Channel, &Channel::Release>;
71 virtual Psm
psm() = 0;
82 using Ptr = internal::RaiiPtr<ChannelListener, &ChannelListener::Release>;
Definition: once_sender.h:41
Definition: dispatcher_base.h:318
virtual uint16_t max_transmit_size()=0
Maximum payload size (SDU) that the peer supports receiving.
virtual uint16_t max_receive_size()=0
Maximum payload size (SDU) that this channel supports receiving.
virtual async2::Poll< Channel::Ptr > PendChannel(async2::Waker &&waker)=0
Poll to receive incoming channels.
virtual Psm psm()=0
The protocol/service multiplexer for this listener.
virtual async2::OnceReceiver< pw::Result< ChannelListener::Ptr > > ListenL2cap(ListenParameters parameters)=0
The parameters to use for incoming channels.
Definition: channel.h:88
uint16_t max_receive_size
Maximum supported payload size (SDU) for receiving.
Definition: channel.h:90
SecurityRequirements security_requirements
Definition: channel.h:94
The authentication an encryption requirements for a channel.
Definition: channel.h:30
bool authentication_required
Definition: channel.h:33
bool secure_connections_required
If true, the link must be encrypted with a Secure Connections key.
Definition: channel.h:36