xref: /btstack/src/hci_dump.h (revision 7966267251b9debd0b0cb126c2187747faa073f9)
1 /*
2  *  hci_dump.h
3  *
4  *  Dump HCI trace in BlueZ's hcidump format
5  *
6  *  Created by Matthias Ringwald on 5/26/09.
7  */
8 
9 #include <stdint.h>
10 
11 typedef struct {
12 	uint16_t	len;
13 	uint8_t		in;
14 	uint8_t		pad;
15 	uint32_t	ts_sec;
16 	uint32_t	ts_usec;
17     uint8_t     packet_type;
18 } __attribute__ ((packed)) hcidump_hdr;
19 
20 void hci_dump_open(char *filename);
21 void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
22 void hci_dump_close();
23