File: tty.h

package info (click to toggle)
bluez 5.83-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 25,664 kB
  • sloc: ansic: 471,418; python: 4,751; sh: 4,580; makefile: 1,042; xml: 126
file content (28 lines) | stat: -rw-r--r-- 609 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
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 *
 *  BlueZ - Bluetooth protocol stack for Linux
 *
 *  Copyright (C) 2016  Intel Corporation
 *
 *
 */

#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