蓝牙4.0 协议栈 开源代码


蓝牙4.0 BLE 协议栈 开源源代码,你懂的。
资源截图
代码片段和文件信息
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2014  Intel Corporation. All rights reserved.
 *
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not write to the Free Software
 *  Foundation Inc. 51 Franklin St Fifth Floor Boston MA  02110-1301  USA
 *
 */

#ifdef HAVE_CONFIG_H
#include 
#endif

#include 
#include 

#include “lib/bluetooth.h“
#include “src/log.h“
#include “hal-msg.h“
#include “ipc.h“
#include “a2dp-sink.h“

static struct ipc *hal_ipc = NULL;

static void bt_a2dp_sink_connect(const void *buf uint16_t len)
{
/* TODO */

DBG(““);

ipc_send_rsp(hal_ipc HAL_SERVICE_ID_A2DP_SINK HAL_OP_A2DP_CONNECT
HAL_STATUS_UNSUPPORTED);
}

static void bt_a2dp_sink_disconnect(const void *buf uint16_t len)
{
/* TODO */

DBG(““);

ipc_send_rsp(hal_ipc HAL_SERVICE_ID_A2DP_SINK HAL_OP_A2DP_DISCONNECT
HAL_STATUS_UNSUPPORTED);
}

static const struct ipc_handler cmd_handlers[] = {
/* HAL_OP_A2DP_CONNECT */
{ bt_a2dp_sink_connect false sizeof(struct hal_cmd_a2dp_connect) }
/* HAL_OP_A2DP_DISCONNECT */
{ bt_a2dp_sink_disconnect false
sizeof(struct hal_cmd_a2dp_disconnect) }
};

bool bt_a2dp_sink_register(struct ipc *ipc const bdaddr_t *addr uint8_t mode)
{
DBG(““);

hal_ipc = ipc;
ipc_register(hal_ipc HAL_SERVICE_ID_A2DP_SINK cmd_handlers
G_N_ELEMENTS(cmd_handlers));

return true;
}

void bt_a2dp_sink_unregister(void)
{
DBG(““);

ipc_unregister(hal_ipc HAL_SERVICE_ID_A2DP_SINK);
hal_ipc = NULL;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2068  2015-02-02 12:54  蓝牙4.0 stack sourcecode-linuxacinclude.m4

     文件     360491  2015-12-28 10:14  蓝牙4.0 stack sourcecode-linuxaclocal.m4

     文件       2121  2014-12-12 21:38  蓝牙4.0 stack sourcecode-linuxandroida2dp-sink.c

     文件        999  2014-12-12 21:38  蓝牙4.0 stack sourcecode-linuxandroida2dp-sink.h

     文件      39144  2015-03-11 18:01  蓝牙4.0 stack sourcecode-linuxandroida2dp.c

     文件        994  2014-03-11 19:20  蓝牙4.0 stack sourcecode-linuxandroida2dp.h

     文件      17539  2015-12-28 10:13  蓝牙4.0 stack sourcecode-linuxandroidAndroid.mk

     文件       2818  2014-02-22 09:42  蓝牙4.0 stack sourcecode-linuxandroidaudio-ipc-api.txt

     文件       2148  2014-06-21 02:33  蓝牙4.0 stack sourcecode-linuxandroidaudio-msg.h

     文件         40  2014-05-19 16:51  蓝牙4.0 stack sourcecode-linuxandroidaudio_utilsPaxHeaders.23806
esampler.c

     文件         40  2014-05-19 16:51  蓝牙4.0 stack sourcecode-linuxandroidaudio_utilsPaxHeaders.23806
esampler.h

     文件       9974  2014-05-19 16:51  蓝牙4.0 stack sourcecode-linuxandroidaudio_utils
esampler.c

     文件       3529  2014-05-19 16:51  蓝牙4.0 stack sourcecode-linuxandroidaudio_utils
esampler.h

     文件      36654  2015-03-31 21:41  蓝牙4.0 stack sourcecode-linuxandroidavctp.c

     文件       5868  2014-06-21 02:33  蓝牙4.0 stack sourcecode-linuxandroidavctp.h

     文件      82107  2015-12-28 10:13  蓝牙4.0 stack sourcecode-linuxandroidavdtp.c

     文件       9964  2015-03-11 18:01  蓝牙4.0 stack sourcecode-linuxandroidavdtp.h

     文件      19772  2015-12-28 10:13  蓝牙4.0 stack sourcecode-linuxandroidavdtptest.c

     文件      80283  2015-03-31 21:41  蓝牙4.0 stack sourcecode-linuxandroidavrcp-lib.c

     文件      14752  2015-06-15 17:33  蓝牙4.0 stack sourcecode-linuxandroidavrcp-lib.h

     文件      26690  2015-06-15 17:33  蓝牙4.0 stack sourcecode-linuxandroidavrcp.c

     文件       1088  2014-03-11 19:20  蓝牙4.0 stack sourcecode-linuxandroidavrcp.h

     文件     123496  2015-12-28 10:13  蓝牙4.0 stack sourcecode-linuxandroidluetooth.c

     文件       3320  2015-03-11 18:01  蓝牙4.0 stack sourcecode-linuxandroidluetooth.h

     文件       5496  2015-12-28 10:13  蓝牙4.0 stack sourcecode-linuxandroidluetoothd-snoop.c

     文件       2265  2014-10-06 03:31  蓝牙4.0 stack sourcecode-linuxandroidluetoothd-wrapper.c

     文件       1738  2014-12-27 01:54  蓝牙4.0 stack sourcecode-linuxandroidluetoothd.te

     文件        529  2014-12-27 01:54  蓝牙4.0 stack sourcecode-linuxandroidluetoothd_snoop.te

     文件      10006  2014-12-27 01:54  蓝牙4.0 stack sourcecode-linuxandroidclienthaltest.c

     文件       2126  2014-09-08 07:23  蓝牙4.0 stack sourcecode-linuxandroidclienthistory.c

............此处省略1864个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)