xref: /btstack/src/hci_dump.h (revision 8adf0dda452dfdcc90e999c1581cd0f7e35e07d6)
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 
118b658ebcSmatthias.ringwald typedef enum {
128b658ebcSmatthias.ringwald     HCI_DUMP_BLUEZ = 0,
13*8adf0ddaSmatthias.ringwald     HCI_DUMP_PACKETLOGGER,
14*8adf0ddaSmatthias.ringwald     HCI_DUMP_STDOUT
158b658ebcSmatthias.ringwald } hci_dump_format_t;
1679662672Smatthias.ringwald 
178b658ebcSmatthias.ringwald void hci_dump_open(char *filename, hci_dump_format_t format);
1879662672Smatthias.ringwald void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
1979662672Smatthias.ringwald void hci_dump_close();
20