pw_bluetooth: Add AVDTP_CLOSE_CMD

Bug: 388331080
Change-Id: I77bb0ab530ae2373a2cf6d843ac80c56f5a7188d
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/258619
Docs-Not-Needed: Ben Lawson <benlawson@google.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Charlie Boutier <charliebout@google.com>
Reviewed-by: Ben Lawson <benlawson@google.com>
diff --git a/pw_bluetooth/public/pw_bluetooth/avdtp.emb b/pw_bluetooth/public/pw_bluetooth/avdtp.emb
index 85a5b8f..3f39b8b 100644
--- a/pw_bluetooth/public/pw_bluetooth/avdtp.emb
+++ b/pw_bluetooth/public/pw_bluetooth/avdtp.emb
@@ -240,3 +240,27 @@
   [requires: signaling_header.message_type == MessageType.RESPONSE_REJECT && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_GET_ALL_CAPABILITIES]
   0     [+2]  SignalingHeader  signaling_header
   $next [+1]  ErrorCode        error_code
+
+# Cf 8.14 Stream Release
+
+
+struct CloseCommand:
+  -- Cf 8.14.1 AVDTP_CLOSE_CMD
+  [requires: signaling_header.message_type == MessageType.COMMAND && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_CLOSE]
+  0     [+2]         SignalingHeader  signaling_header
+  $next [+1]  bits:
+    0     [+6]       Seid             acp_seid
+    $next [+2]       UInt             rfa
+
+
+struct CloseResponse:
+  -- Cf 8.14.2 AVDTP_CLOSE_RSP
+  [requires: signaling_header.message_type == MessageType.RESPONSE_ACCEPT && signaling_header.signal_identifier == SignalIdentifierCode.AVDTP_CLOSE]
+  0 [+2]  SignalingHeader  signaling_header
+
+
+struct CloseReject:
+  -- Cf 8.14.3 AVDTP_CLOSE_REJ
+  [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