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/rfcomm.h
Views: 3960
/*1*2* BlueZ - Bluetooth protocol stack for Linux3*4* Copyright (C) 2002-2003 Maxim Krasnyansky <[email protected]>5* Copyright (C) 2002-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#ifndef __RFCOMM_H25#define __RFCOMM_H2627#ifdef __cplusplus28extern "C" {29#endif3031#include <sys/socket.h>3233/* RFCOMM defaults */34#define RFCOMM_DEFAULT_MTU 1273536#define RFCOMM_PSM 33738/* RFCOMM socket address */39struct sockaddr_rc {40sa_family_t rc_family;41bdaddr_t rc_bdaddr;42uint8_t rc_channel;43};4445/* RFCOMM socket options */46#define RFCOMM_CONNINFO 0x0247struct rfcomm_conninfo {48uint16_t hci_handle;49uint8_t dev_class[3];50};5152#define RFCOMM_LM 0x0353#define RFCOMM_LM_MASTER 0x000154#define RFCOMM_LM_AUTH 0x000255#define RFCOMM_LM_ENCRYPT 0x000456#define RFCOMM_LM_TRUSTED 0x000857#define RFCOMM_LM_RELIABLE 0x001058#define RFCOMM_LM_SECURE 0x00205960/* RFCOMM TTY support */61#define RFCOMM_MAX_DEV 2566263#define RFCOMMCREATEDEV _IOW('R', 200, int)64#define RFCOMMRELEASEDEV _IOW('R', 201, int)65#define RFCOMMGETDEVLIST _IOR('R', 210, int)66#define RFCOMMGETDEVINFO _IOR('R', 211, int)6768struct rfcomm_dev_req {69int16_t dev_id;70uint32_t flags;71bdaddr_t src;72bdaddr_t dst;73uint8_t channel;74};75#define RFCOMM_REUSE_DLC 076#define RFCOMM_RELEASE_ONHUP 177#define RFCOMM_HANGUP_NOW 278#define RFCOMM_TTY_ATTACHED 37980struct rfcomm_dev_info {81int16_t id;82uint32_t flags;83uint16_t state;84bdaddr_t src;85bdaddr_t dst;86uint8_t channel;87};8889struct rfcomm_dev_list_req {90uint16_t dev_num;91struct rfcomm_dev_info dev_info[0];92};9394#ifdef __cplusplus95}96#endif9798#endif /* __RFCOMM_H */99100101