Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
avdtp.h
Go to the documentation of this file.
1
5/*
6 * Copyright (c) 2015-2016 Intel Corporation
7 * Copyright 2024 NXP
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
66
74
84
102
122
130 void (*media_data_cb)(struct bt_avdtp_sep *sep,
131 struct net_buf *buf);
133 struct bt_avdtp *session;
136 /* Internally used list node */
137 sys_snode_t _node;
138};
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVDTP_H_ */
bt_avdtp_sep_type
Stream End Point Type.
Definition avdtp.h:68
@ BT_AVDTP_SINK
Sink Role.
Definition avdtp.h:72
@ BT_AVDTP_SOURCE
Source Role.
Definition avdtp.h:70
bt_avdtp_media_type
Stream End Point Media Type.
Definition avdtp.h:76
@ BT_AVDTP_VIDEO
Video Media Type.
Definition avdtp.h:80
@ BT_AVDTP_MULTIMEDIA
Multimedia Media Type.
Definition avdtp.h:82
@ BT_AVDTP_AUDIO
Audio Media Type.
Definition avdtp.h:78
bt_avdtp_service_category
service category Type
Definition avdtp.h:104
@ BT_AVDTP_SERVICE_MEDIA_RECOVERY
Recovery.
Definition avdtp.h:110
@ BT_AVDTP_SERVICE_HEADER_COMPRESSION
Header Compression.
Definition avdtp.h:114
@ BT_AVDTP_SERVICE_CONTENT_PROTECTION
Content Protection.
Definition avdtp.h:112
@ BT_AVDTP_SERVICE_MEDIA_CODEC
Media Codec.
Definition avdtp.h:118
@ BT_AVDTP_SERVICE_REPORTING
Reporting.
Definition avdtp.h:108
@ BT_AVDTP_SERVICE_MEDIA_TRANSPORT
Media Transport.
Definition avdtp.h:106
@ BT_AVDTP_SERVICE_MULTIPLEXING
Multiplexing.
Definition avdtp.h:116
@ BT_AVDTP_SERVICE_DELAY_REPORTING
Delay Reporting.
Definition avdtp.h:120
bt_avdtp_err_code
AVDTP error code.
Definition avdtp.h:21
@ BT_AVDTP_BAD_STATE
Indicates that the ACP state machine is in an invalid state in order to process the signal.
Definition avdtp.h:64
@ BT_AVDTP_BAD_RECOVERY_FORMAT
The format of Recovery Service Capability is not correct.
Definition avdtp.h:51
@ BT_AVDTP_SUCCESS
The response is success, it is not from avdtp spec.
Definition avdtp.h:23
@ BT_AVDTP_TIME_OUT
The request is time out without response, it is not from avdtp spec.
Definition avdtp.h:25
@ BT_AVDTP_BAD_SERV_CATEGORY
The value of Service Category in the request packet is not defined in AVDTP.
Definition avdtp.h:37
@ BT_AVDTP_NOT_SUPPORTED_COMMAND
The requested command is not supported by the device.
Definition avdtp.h:41
@ BT_AVDTP_INVALID_CAPABILITIES
The reconfigure command is an attempt to reconfigure a transport service codec_cap of the SEP.
Definition avdtp.h:45
@ BT_AVDTP_BAD_ROHC_FORMAT
The format of Header Compression Service Capability is not correct.
Definition avdtp.h:53
@ BT_AVDTP_BAD_HEADER_FORMAT
The request packet header format error.
Definition avdtp.h:27
@ BT_AVDTP_SEP_IN_USE
The SEP is in use.
Definition avdtp.h:33
@ BT_AVDTP_BAD_PAYLOAD_FORMAT
The requested command has an incorrect payload format.
Definition avdtp.h:39
@ BT_AVDTP_BAD_MULTIPLEXING_FORMAT
The format of Multiplexing Service Capability is not correct.
Definition avdtp.h:57
@ BT_AVDTP_BAD_MEDIA_TRANSPORT_FORMAT
The format of Media Transport Capability is not correct.
Definition avdtp.h:49
@ BT_AVDTP_BAD_LENGTH
The request packet length is not match the assumed length.
Definition avdtp.h:29
@ BT_AVDTP_BAD_CP_FORMAT
The format of Content Protection Service Capability is not correct.
Definition avdtp.h:55
@ BT_AVDTP_BAD_ACP_SEID
The requested command indicates an invalid ACP SEID (not addressable)
Definition avdtp.h:31
@ BT_AVDTP_BAD_RECOVERY_TYPE
The requested Recovery Type is not defined in AVDTP.
Definition avdtp.h:47
@ BT_AVDTP_SEP_NOT_IN_USE
The SEP is not in use.
Definition avdtp.h:35
@ BT_AVDTP_UNSUPPORTED_CONFIGURAION
Configuration not supported.
Definition avdtp.h:59
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
AVDTP stream endpoint information.
Definition avdtp.h:88
uint8_t id
Stream End Point ID that is the identifier of the stream endpoint.
Definition avdtp.h:92
uint8_t reserved
Reserved.
Definition avdtp.h:94
enum bt_avdtp_media_type media_type
Media-type of the End Point Only BT_AVDTP_AUDIO is supported now.
Definition avdtp.h:100
uint8_t inuse
End Point usage status.
Definition avdtp.h:90
enum bt_avdtp_sep_type tsep
Stream End-point Type that indicates if the stream end-point is SNK or SRC.
Definition avdtp.h:96
AVDTP Stream End Point.
Definition avdtp.h:124
struct bt_avdtp_sep_info sep_info
Stream End Point information.
Definition avdtp.h:126
uint8_t state
SEP state.
Definition avdtp.h:135
struct bt_l2cap_br_chan chan
Media Transport Channel.
Definition avdtp.h:128
struct bt_avdtp * session
avdtp session
Definition avdtp.h:133
void(* media_data_cb)(struct bt_avdtp_sep *sep, struct net_buf *buf)
the endpoint media data
Definition avdtp.h:130
BREDR L2CAP Channel structure.
Definition l2cap.h:246
Network buffer representation.
Definition net_buf.h:1006