Skip to content

Commit

Permalink
pw_bluetooth: Add AVDTP_SUSPEND_CMD
Browse files Browse the repository at this point in the history
Bug: 381291639
Change-Id: Ia500776601f4b4e597984d329c2e70bdba505cf4
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/259452
Commit-Queue: Charlie Boutier <charliebout@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Docs-Not-Needed: Charlie Boutier <charliebout@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
  • Loading branch information
SilverBzH authored and CQ Bot Account committed Jan 9, 2025
1 parent 46ce327 commit 7cb88b2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pw_bluetooth/public/pw_bluetooth/avdtp.emb
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,31 @@ struct CloseReject:
[requires: signaling_header.message_type == MessageType.RESPONSE_REJECT && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_CLOSE]
0 [+2] SignalingHeader signaling_header
$next [+1] ErrorCode error_code

# Cf 8.15 Stream suspend


struct StreamSuspendCommand:
-- Cf 8.15.1 AVDTP_SUSPEND_CMD
[requires: signaling_header.message_type == MessageType.COMMAND && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_SUSPEND]
0 [+2] SignalingHeader signaling_header
$next [+1] bits:
0 [+6] Seid acp_seid
$next [+2] UInt rfa


struct StreamSuspendResponse:
-- Cf 8.15.2 AVDTP_SUSPEND_RSP
[requires: signaling_header.message_type == MessageType.RESPONSE_ACCEPT && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_SUSPEND]
0 [+2] SignalingHeader signaling_header


struct StreamSuspendReject:
-- Cf 8.15.3 AVDTP_SUSPEND_REJ
[requires: signaling_header.message_type == MessageType.RESPONSE_REJECT && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_SUSPEND]
0 [+2] SignalingHeader signaling_header
$next [+1] bits:
0 [+6] Seid acp_seid
$next [+2] UInt rfa

$next [+1] ErrorCode error_code

0 comments on commit 7cb88b2

Please sign in to comment.