XenevaOS
Loading...
Searching...
No Matches
Macros
avdtp.h File Reference
#include <stdint.h>
Include dependency graph for avdtp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AVDTP_PSM   25
 
#define L2CAP_CID_SIGNAL   0x0001
 
#define L2CAP_CONN_REQ   0x02
 
#define L2CAP_CONN_RSP   0x03
 
#define L2CAP_CONF_REQ   0x04
 
#define L2CAP_CONF_RSP   0x05
 
#define L2CAP_CONF_SUCCESS   0x0000
 
#define L2CAP_CONN_OK   0x0000
 
#define L2CAP_CONN_PENDING   0x0001
 
#define L2CAP_OPT_MTU   0x01
 
#define AVDTP_PKT_SINGLE   0x00
 
#define AVDTP_MSG_CMD   0x00
 
#define AVDTP_MSG_ACCEPT   0x02
 
#define AVDTP_MSG_REJECT   0x03
 
#define AVDTP_DISCOVER   0x01
 
#define AVDTP_GET_CAPABILITIES   0x02
 
#define AVDTP_SET_CONFIGURATION   0x03
 
#define AVDTP_GET_CONFIGURATION   0x04
 
#define AVDTP_RECONFIGURE   0x05
 
#define AVDTP_OPEN   0x06
 
#define AVDTP_START   0x07
 
#define AVDTP_CLOSE   0x08
 
#define AVDTP_SUSPEND   0x09
 
#define AVDTP_ABORT   0x0A
 
#define AVDTP_GET_ALLCAPABILITIES   0x0C
 
#define AVDTP_DELAYREPORT   0x0D
 
#define AVDTP_SEP_SINK   1
 
#define AVDTP_MEDIA_AUDIO   0
 
#define AVDTP_CAT_TRANSPORT   0x01
 
#define AVDTP_CAT_REPORTING   0x02
 
#define AVDTP_CAT_RECOVERY   0x03
 
#define AVDTP_CAT_PROTECTION   0x04
 
#define AVDTP_CAT_HDRCMPR   0x05
 
#define AVDTP_CAT_MUX   0x06
 
#define AVDTP_CAT_CODEC   0x07
 
#define AVDTP_CAT_DELAYREP   0x08
 
#define A2DP_CODEC_SBC   0x00
 
#define A2DP_SBC_FREQ_44100   0x20
 
#define A2DP_SBC_FREQ_48000   0x10
 
#define A2DP_SBC_MODE_JOINT   0x01
 
#define A2DP_SBC_BLK16   0x10
 
#define A2DP_SBC_SB8   0x04
 
#define A2DP_SBC_LOUDNESS   0x01
 
#define AVDTP_RTP_PT_SBC   96
 
#define AVDTP_SBC_OFFER_0   (A2DP_SBC_FREQ_44100 | A2DP_SBC_MODE_JOINT)
 
#define AVDTP_SBC_OFFER_1   (A2DP_SBC_BLK16 | A2DP_SBC_SB8 | A2DP_SBC_LOUDNESS)
 
#define AVDTP_SBC_BITPOOL   53
 

Macro Definition Documentation

◆ A2DP_CODEC_SBC

#define A2DP_CODEC_SBC   0x00

◆ A2DP_SBC_BLK16

#define A2DP_SBC_BLK16   0x10

◆ A2DP_SBC_FREQ_44100

#define A2DP_SBC_FREQ_44100   0x20

◆ A2DP_SBC_FREQ_48000

#define A2DP_SBC_FREQ_48000   0x10

◆ A2DP_SBC_LOUDNESS

#define A2DP_SBC_LOUDNESS   0x01

◆ A2DP_SBC_MODE_JOINT

#define A2DP_SBC_MODE_JOINT   0x01

◆ A2DP_SBC_SB8

#define A2DP_SBC_SB8   0x04

◆ AVDTP_ABORT

#define AVDTP_ABORT   0x0A

◆ AVDTP_CAT_CODEC

#define AVDTP_CAT_CODEC   0x07

◆ AVDTP_CAT_DELAYREP

#define AVDTP_CAT_DELAYREP   0x08

◆ AVDTP_CAT_HDRCMPR

#define AVDTP_CAT_HDRCMPR   0x05

◆ AVDTP_CAT_MUX

#define AVDTP_CAT_MUX   0x06

◆ AVDTP_CAT_PROTECTION

#define AVDTP_CAT_PROTECTION   0x04

◆ AVDTP_CAT_RECOVERY

#define AVDTP_CAT_RECOVERY   0x03

◆ AVDTP_CAT_REPORTING

#define AVDTP_CAT_REPORTING   0x02

◆ AVDTP_CAT_TRANSPORT

#define AVDTP_CAT_TRANSPORT   0x01

◆ AVDTP_CLOSE

#define AVDTP_CLOSE   0x08

◆ AVDTP_DELAYREPORT

#define AVDTP_DELAYREPORT   0x0D

◆ AVDTP_DISCOVER

#define AVDTP_DISCOVER   0x01

◆ AVDTP_GET_ALLCAPABILITIES

#define AVDTP_GET_ALLCAPABILITIES   0x0C

◆ AVDTP_GET_CAPABILITIES

#define AVDTP_GET_CAPABILITIES   0x02

◆ AVDTP_GET_CONFIGURATION

#define AVDTP_GET_CONFIGURATION   0x04

◆ AVDTP_MEDIA_AUDIO

#define AVDTP_MEDIA_AUDIO   0

◆ AVDTP_MSG_ACCEPT

#define AVDTP_MSG_ACCEPT   0x02

◆ AVDTP_MSG_CMD

#define AVDTP_MSG_CMD   0x00

◆ AVDTP_MSG_REJECT

#define AVDTP_MSG_REJECT   0x03

◆ AVDTP_OPEN

#define AVDTP_OPEN   0x06

◆ AVDTP_PKT_SINGLE

#define AVDTP_PKT_SINGLE   0x00

◆ AVDTP_PSM

#define AVDTP_PSM   25

BSD 2-Clause License

Copyright (c) 2022-2026, Manas Kamal Choudhury All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

◆ AVDTP_RECONFIGURE

#define AVDTP_RECONFIGURE   0x05

◆ AVDTP_RTP_PT_SBC

#define AVDTP_RTP_PT_SBC   96

◆ AVDTP_SBC_BITPOOL

#define AVDTP_SBC_BITPOOL   53

◆ AVDTP_SBC_OFFER_0

#define AVDTP_SBC_OFFER_0   (A2DP_SBC_FREQ_44100 | A2DP_SBC_MODE_JOINT)

◆ AVDTP_SBC_OFFER_1

#define AVDTP_SBC_OFFER_1   (A2DP_SBC_BLK16 | A2DP_SBC_SB8 | A2DP_SBC_LOUDNESS)

◆ AVDTP_SEP_SINK

#define AVDTP_SEP_SINK   1

◆ AVDTP_SET_CONFIGURATION

#define AVDTP_SET_CONFIGURATION   0x03

◆ AVDTP_START

#define AVDTP_START   0x07

◆ AVDTP_SUSPEND

#define AVDTP_SUSPEND   0x09

◆ L2CAP_CID_SIGNAL

#define L2CAP_CID_SIGNAL   0x0001

◆ L2CAP_CONF_REQ

#define L2CAP_CONF_REQ   0x04

◆ L2CAP_CONF_RSP

#define L2CAP_CONF_RSP   0x05

◆ L2CAP_CONF_SUCCESS

#define L2CAP_CONF_SUCCESS   0x0000

◆ L2CAP_CONN_OK

#define L2CAP_CONN_OK   0x0000

◆ L2CAP_CONN_PENDING

#define L2CAP_CONN_PENDING   0x0001

◆ L2CAP_CONN_REQ

#define L2CAP_CONN_REQ   0x02

◆ L2CAP_CONN_RSP

#define L2CAP_CONN_RSP   0x03

◆ L2CAP_OPT_MTU

#define L2CAP_OPT_MTU   0x01