xref: /btstack/src/hci_dump.h (revision 8b658ebcf868c8176b3f7e17042b1385b71e098d)
179662672Smatthias.ringwald /*
279662672Smatthias.ringwald  *  hci_dump.h
379662672Smatthias.ringwald  *
479662672Smatthias.ringwald  *  Dump HCI trace in BlueZ's hcidump format
579662672Smatthias.ringwald  *
679662672Smatthias.ringwald  *  Created by Matthias Ringwald on 5/26/09.
779662672Smatthias.ringwald  */
879662672Smatthias.ringwald 
979662672Smatthias.ringwald #include <stdint.h>
1079662672Smatthias.ringwald 
11*8b658ebcSmatthias.ringwald typedef enum {
12*8b658ebcSmatthias.ringwald     HCI_DUMP_BLUEZ = 0,
13*8b658ebcSmatthias.ringwald     HCI_DUMP_PACKETLOGGER
14*8b658ebcSmatthias.ringwald } hci_dump_format_t;
1579662672Smatthias.ringwald 
16*8b658ebcSmatthias.ringwald void hci_dump_open(char *filename, hci_dump_format_t format);
1779662672Smatthias.ringwald void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
1879662672Smatthias.ringwald void hci_dump_close();
19