资源简介
蓝牙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算子源代码
相关资源
- PCRat远控开源代码
- CANopen协议栈源代码详解
- bacnet协议栈源代码
- CC2530协议栈实验手册
- ble2until.zip
- 蓝牙4.0BLE开发完全手册( 高清书签版
- FPGA硬件逻辑资源实现UDP协议通信的开
- 微信版本小说分销开源代码,亲测可
- ZigBee2007协议栈应用层ZigBee协议实现代
- MPU6050的zigbee协议栈
- 安卓开源播放器源代码
- 简单粗暴学蓝牙4.0CC2541篇_201802240551
- SIM超分辨成像开源代码
- ZStack协议栈 ZStack-CC2530-2.5.1a
- Z-Stack-Mesh-1.0.0,是TI德州仪器发布的基
- 大漠插件 开源代码
- 北邮计算机网络实验-用开源代码实验
- 物质点法开源代码Uintah-2.1.0
- thinksns v4 开源代码及文档
- LTE协议栈与信令分析-陈宇恒_肖竹_王
- 基于zigbee烟雾监测系统工程文件
- 基于CC2530的BH1750采集,使用协议栈组
- Ble蓝牙4.0搜索设备链接获取值Demo
- stm32+UCOS+UCGUI3.98+FATFS综合程序
- BLE-入门与提高教程
- CC2530协议栈rssi实现测距
- 有限元开源代码GetFEM
- 嵌入式系统——采用公开源代码和S
- CC2530协议栈连接RFID模块
- zstack 2.5.1a 协议栈
评论
共有 条评论