最近刚好接触到蓝牙中a2dp Codec的service caps。
发现所接触的配置信息全都是用const定义出来,却没有任何相关的解释。
经过研究,发现还是有规律可循的。
首先需要强调的是任何一个caps都是由好几个capability组成。而本人使用的csr源代码中并未将这些capability 组成一个enum。但从实际的代码中分析得出这些capability应该是并列的。
typedef enum {
/*
* The capability to stream media.
* This is manditory for the Advance Audio Distribution Profile.
*/
AVDTP_SERVICE_MEDIA_TRANSPORT = 1,
/*
* The reporting capability.
* This is not currently supported.
*/
AVDTP_SERVICE_REPORTING = 2,
/*
* The recovery capability.
* This is not currently supported.
*/
AVDTP_SERVICE_RECOVERY = 3,
/*
* The conte