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/lib/bluetooth/hidp.h
Views: 3960
/*1*2* BlueZ - Bluetooth protocol stack for Linux3*4* Copyright (C) 2003-2010 Marcel Holtmann <[email protected]>5*6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA20*21*/2223#ifndef __HIDP_H24#define __HIDP_H2526#ifdef __cplusplus27extern "C" {28#endif2930/* HIDP defaults */31#define HIDP_MINIMUM_MTU 4832#define HIDP_DEFAULT_MTU 483334/* HIDP ioctl defines */35#define HIDPCONNADD _IOW('H', 200, int)36#define HIDPCONNDEL _IOW('H', 201, int)37#define HIDPGETCONNLIST _IOR('H', 210, int)38#define HIDPGETCONNINFO _IOR('H', 211, int)3940#define HIDP_VIRTUAL_CABLE_UNPLUG 041#define HIDP_BOOT_PROTOCOL_MODE 142#define HIDP_BLUETOOTH_VENDOR_ID 94344struct hidp_connadd_req {45int ctrl_sock; /* Connected control socket */46int intr_sock; /* Connected interrupt socket */47uint16_t parser; /* Parser version */48uint16_t rd_size; /* Report descriptor size */49uint8_t *rd_data; /* Report descriptor data */50uint8_t country;51uint8_t subclass;52uint16_t vendor;53uint16_t product;54uint16_t version;55uint32_t flags;56uint32_t idle_to;57char name[128]; /* Device name */58};5960struct hidp_conndel_req {61bdaddr_t bdaddr;62uint32_t flags;63};6465struct hidp_conninfo {66bdaddr_t bdaddr;67uint32_t flags;68uint16_t state;69uint16_t vendor;70uint16_t product;71uint16_t version;72char name[128];73};7475struct hidp_connlist_req {76uint32_t cnum;77struct hidp_conninfo *ci;78};7980#ifdef __cplusplus81}82#endif8384#endif /* __HIDP_H */858687