资源简介
蓝牙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-linux\acinclude.m4
文件 360491 2015-12-28 10:14 蓝牙4.0 stack sourcecode-linux\aclocal.m4
文件 2121 2014-12-12 21:38 蓝牙4.0 stack sourcecode-linux\android\a2dp-sink.c
文件 999 2014-12-12 21:38 蓝牙4.0 stack sourcecode-linux\android\a2dp-sink.h
文件 39144 2015-03-11 18:01 蓝牙4.0 stack sourcecode-linux\android\a2dp.c
文件 994 2014-03-11 19:20 蓝牙4.0 stack sourcecode-linux\android\a2dp.h
文件 17539 2015-12-28 10:13 蓝牙4.0 stack sourcecode-linux\android\Android.mk
文件 2818 2014-02-22 09:42 蓝牙4.0 stack sourcecode-linux\android\audio-ipc-api.txt
文件 2148 2014-06-21 02:33 蓝牙4.0 stack sourcecode-linux\android\audio-msg.h
文件 40 2014-05-19 16:51 蓝牙4.0 stack sourcecode-linux\android\audio_utils\PaxHeaders.23806\resampler.c
文件 40 2014-05-19 16:51 蓝牙4.0 stack sourcecode-linux\android\audio_utils\PaxHeaders.23806\resampler.h
文件 9974 2014-05-19 16:51 蓝牙4.0 stack sourcecode-linux\android\audio_utils\resampler.c
文件 3529 2014-05-19 16:51 蓝牙4.0 stack sourcecode-linux\android\audio_utils\resampler.h
文件 36654 2015-03-31 21:41 蓝牙4.0 stack sourcecode-linux\android\avctp.c
文件 5868 2014-06-21 02:33 蓝牙4.0 stack sourcecode-linux\android\avctp.h
文件 82107 2015-12-28 10:13 蓝牙4.0 stack sourcecode-linux\android\avdtp.c
文件 9964 2015-03-11 18:01 蓝牙4.0 stack sourcecode-linux\android\avdtp.h
文件 19772 2015-12-28 10:13 蓝牙4.0 stack sourcecode-linux\android\avdtptest.c
文件 80283 2015-03-31 21:41 蓝牙4.0 stack sourcecode-linux\android\avrcp-lib.c
文件 14752 2015-06-15 17:33 蓝牙4.0 stack sourcecode-linux\android\avrcp-lib.h
文件 26690 2015-06-15 17:33 蓝牙4.0 stack sourcecode-linux\android\avrcp.c
文件 1088 2014-03-11 19:20 蓝牙4.0 stack sourcecode-linux\android\avrcp.h
文件 123496 2015-12-28 10:13 蓝牙4.0 stack sourcecode-linux\android\bluetooth.c
文件 3320 2015-03-11 18:01 蓝牙4.0 stack sourcecode-linux\android\bluetooth.h
文件 5496 2015-12-28 10:13 蓝牙4.0 stack sourcecode-linux\android\bluetoothd-snoop.c
文件 2265 2014-10-06 03:31 蓝牙4.0 stack sourcecode-linux\android\bluetoothd-wrapper.c
文件 1738 2014-12-27 01:54 蓝牙4.0 stack sourcecode-linux\android\bluetoothd.te
文件 529 2014-12-27 01:54 蓝牙4.0 stack sourcecode-linux\android\bluetoothd_snoop.te
文件 10006 2014-12-27 01:54 蓝牙4.0 stack sourcecode-linux\android\client\haltest.c
文件 2126 2014-09-08 07:23 蓝牙4.0 stack sourcecode-linux\android\client\history.c
............此处省略1864个文件信息
- 上一篇:ARMA建模资料
- 下一篇:Canny算子源代码
相关资源
- 由浅入深,蓝牙4.0/BLE协议栈开发攻略
- VxWorks TCPIP协议栈
- 智能传感器的蓝牙协议栈与SoC结构设
- 智能传感器的蓝牙协议栈与SoC结构解
- Sniffer原理及开源代码
- DA14580_源码(蓝牙4.0)
- openHEVC-hm10.0
- RM2016步兵车开源代码
- CCP 协议栈
- profibus-DP开源代码+视频
- 蓝牙4.0防丢器CC2540源码+PCB4层板+原理
- 在线报名开源代码
- stm32 网络远程IAP(支持stm32的网络远程
- 远程控制开源代码
- VNC开源 源码
- LBFGS开源代码
- FPGA实现CAN总线控制器开源代码.zip
- linux内核tcp/ip协议栈分析PDF
- 基于zigbee的温度传感器DS18B20
- J1939协议栈(包括源码和标准)
- 《netty权威指南》私有协议栈开发完整
- 安卓蓝牙4.0连接多台设备
- ecshop仿京东双平台手机APP完全开源代
- IMS PCRF开源代码
- slam 开源代码ptam and ptamm
- 一个SIP协议栈的实现源码
- w5100打包整理原理图源码全套解决方案
- linux tcp/ip协议栈
- audacity开源代码
- CAN总线网络层协议栈开发测试
评论
共有 条评论