Skip to content

Commit

Permalink
l2cap: add flow control modes.
Browse files Browse the repository at this point in the history
Add basic, ERTM and streaming flow control modes for L2CAP
Bluetooth classic sockets.
  • Loading branch information
surban committed Mar 28, 2024
1 parent 86c2fa1 commit 5a76acb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bluer/src/l2cap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,12 @@ impl TryFrom<bt_security> for Security {
#[derive(Debug, Clone, Copy, Eq, PartialEq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum FlowControl {
/// Basic.
Basic = 0x00,
/// Enhanced retransmission mode (ERTM).
Ertm = 0x01,
/// Streaming.
Streaming = 0x02,
/// LE flow control.
Le = 0x03,
/// Extended flow control.
Expand Down

0 comments on commit 5a76acb

Please sign in to comment.