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/packet.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 <stdbool.h>26#include <sys/time.h>2728#define PACKET_FILTER_SHOW_INDEX (1 << 0)29#define PACKET_FILTER_SHOW_DATE (1 << 1)30#define PACKET_FILTER_SHOW_TIME (1 << 2)31#define PACKET_FILTER_SHOW_TIME_OFFSET (1 << 3)32#define PACKET_FILTER_SHOW_ACL_DATA (1 << 4)33#define PACKET_FILTER_SHOW_SCO_DATA (1 << 5)3435void packet_set_filter(unsigned long filter);36void packet_add_filter(unsigned long filter);37void packet_del_filter(unsigned long filter);3839void packet_select_index(uint16_t index);4041void packet_hexdump(const unsigned char *buf, uint16_t len);42void packet_print_version(const char *label, uint8_t version,43const char *sublabel, uint16_t subversion);44void packet_print_company(const char *label, uint16_t company);45void packet_print_addr(const char *label, const void *data, bool random);46void packet_print_ad(const void *data, uint8_t size);47void packet_print_features_ll(const uint8_t *features);48void packet_print_channel_map_ll(const uint8_t *map);4950void packet_control(struct timeval *tv, uint16_t index, uint16_t opcode,51const void *data, uint16_t size);52void packet_monitor(struct timeval *tv, uint16_t index, uint16_t opcode,53const void *data, uint16_t size);54void packet_simulator(struct timeval *tv, uint16_t frequency,55const void *data, uint16_t size);5657void packet_new_index(struct timeval *tv, uint16_t index, const char *label,58uint8_t type, uint8_t bus, const char *name);59void packet_del_index(struct timeval *tv, uint16_t index, const char *label);6061void packet_hci_command(struct timeval *tv, uint16_t index,62const void *data, uint16_t size);63void packet_hci_event(struct timeval *tv, uint16_t index,64const void *data, uint16_t size);65void packet_hci_acldata(struct timeval *tv, uint16_t index, bool in,66const void *data, uint16_t size);67void packet_hci_scodata(struct timeval *tv, uint16_t index, bool in,68const void *data, uint16_t size);697071