Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/next/external/cache/sources/hcitools/monitor/btsnoop.h
Views: 3959
/*1*2* BlueZ - Bluetooth protocol stack for Linux3*4* Copyright (C) 2011-2012 Intel Corporation5* Copyright (C) 2004-2010 Marcel Holtmann <[email protected]>6*7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (at your option) any later version.12*13* This program is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with this program; if not, write to the Free Software20* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA21*22*/2324#include <stdint.h>25#include <sys/time.h>2627#define BTSNOOP_TYPE_HCI 100128#define BTSNOOP_TYPE_UART 100229#define BTSNOOP_TYPE_BCSP 100330#define BTSNOOP_TYPE_3WIRE 10043132#define BTSNOOP_TYPE_EXTENDED_HCI 200133#define BTSNOOP_TYPE_EXTENDED_PHY 20023435#define BTSNOOP_OPCODE_NEW_INDEX 036#define BTSNOOP_OPCODE_DEL_INDEX 137#define BTSNOOP_OPCODE_COMMAND_PKT 238#define BTSNOOP_OPCODE_EVENT_PKT 339#define BTSNOOP_OPCODE_ACL_TX_PKT 440#define BTSNOOP_OPCODE_ACL_RX_PKT 541#define BTSNOOP_OPCODE_SCO_TX_PKT 642#define BTSNOOP_OPCODE_SCO_RX_PKT 74344void btsnoop_create(const char *path, uint32_t type);45void btsnoop_write(struct timeval *tv, uint32_t flags,46const void *data, uint16_t size);47void btsnoop_write_hci(struct timeval *tv, uint16_t index, uint16_t opcode,48const void *data, uint16_t size);49void btsnoop_write_phy(struct timeval *tv, uint16_t frequency,50const void *data, uint16_t size);51int btsnoop_open(const char *path, uint32_t *type);52int btsnoop_read_hci(struct timeval *tv, uint16_t *index, uint16_t *opcode,53void *data, uint16_t *size);54int btsnoop_read_phy(struct timeval *tv, uint16_t *frequency,55void *data, uint16_t *size);56void btsnoop_close(void);575859