File: tty.h

package info (click to toggle)
bluez 5.55-3.1%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,512 kB
  • sloc: ansic: 367,768; python: 5,435; makefile: 869; sh: 179; xml: 126; perl: 47
file content (41 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2016  Intel Corporation
 *
 *
 *  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
 *
 */

#include <stdint.h>

struct tty_hdr {
	uint16_t data_len;
	uint16_t opcode;
	uint8_t  flags;
	uint8_t  hdr_len;
	uint8_t  ext_hdr[0];
} __attribute__ ((packed));

#define TTY_EXTHDR_COMMAND_DROPS  1
#define TTY_EXTHDR_EVENT_DROPS    2
#define TTY_EXTHDR_ACL_TX_DROPS   3
#define TTY_EXTHDR_ACL_RX_DROPS   4
#define TTY_EXTHDR_SCO_TX_DROPS   5
#define TTY_EXTHDR_SCO_RX_DROPS   6
#define TTY_EXTHDR_OTHER_DROPS    7
#define TTY_EXTHDR_TS32           8