Pigweed
 
Loading...
Searching...
No Matches
pw::bluetooth::low_energy::Channel Class Referenceabstract

#include <channel.h>

Inheritance diagram for pw::bluetooth::low_energy::Channel:
pw::channel::Channel< kDataType, kProperties >

Public Types

using Ptr = internal::RaiiPtr< Channel, &Channel::Release >
 

Public Member Functions

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.
 
- Public Member Functions inherited from pw::channel::Channel< kDataType, kProperties >
constexpr bool is_read_open () const
 
constexpr bool is_write_open () const
 
constexpr bool is_read_or_write_open () const
 True if the channel is open for reading or writing.
 
async2::Poll< Result< multibuf::MultiBuf > > PendRead (async2::Context &cx)
 
async2::Poll< StatusPendReadyToWrite (pw::async2::Context &cx)
 
async2::Poll< std::optional< multibuf::MultiBuf > > PendAllocateWriteBuffer (async2::Context &cx, size_t min_bytes)
 
Status StageWrite (multibuf::MultiBuf &&data)
 
async2::Poll< StatusPendWrite (async2::Context &cx)
 
async2::Poll< pw::StatusPendClose (async2::Context &cx)
 
template<typename Sibling , typename = internal::EnableIfConversionIsValid<Channel, Sibling>>
constexpr operator Sibling & ()
 Channels may be implicitly converted to other compatible channel types.
 
template<typename Sibling , typename = internal::EnableIfConversionIsValid<Channel, Sibling>>
constexpr operator const Sibling & () const
 
template<typename Sibling >
Sibling & as ()
 Returns a reference to this channel as another compatible channel type.
 
template<typename Sibling >
const Sibling & as () const
 
template<Property... kOtherChannelProperties>
auto & as ()
 
template<Property... kOtherChannelProperties>
const auto & as () const
 
Channel< DataType::kByte, kProperties... > & IgnoreDatagramBoundaries ()
 
const Channel< DataType::kByte, kProperties... > & IgnoreDatagramBoundaries () const
 

Additional Inherited Members

- Static Public Member Functions inherited from pw::channel::Channel< kDataType, kProperties >
static constexpr DataType data_type ()
 Returns the data type of this channel.
 
static constexpr bool reliable ()
 Returns whether the channel type is reliable.
 
static constexpr bool seekable ()
 Returns whether the channel type is seekable.
 
static constexpr bool readable ()
 Returns whether the channel type is readable.
 
static constexpr bool writable ()
 Returns whether the channel type is writable.
 

Detailed Description

A duplex datagram channel that models the lifetime of a connection-oriented channel. Closing or destroying Channel will close the underlying channel.


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