hci_dump.h (40d1c7a481c06f017398db35fb6eef2671d8eec8) | hci_dump.h (a1d7dd1f6f0e04e68c985f07f9a54371d1c4620c) |
---|---|
1/* 2 * Copyright (C) 2009 by Matthias Ringwald 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 */ 31 32/* 33 * hci_dump.h 34 * | 1/* 2 * Copyright (C) 2009 by Matthias Ringwald 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 18 unchanged lines hidden (view full) --- 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 */ 31 32/* 33 * hci_dump.h 34 * |
35 * Dump HCI trace in BlueZ's hcidump format | 35 * Dump HCI trace as BlueZ's hcidump format, Apple's PacketLogger, or stdout |
36 * 37 * Created by Matthias Ringwald on 5/26/09. 38 */ 39 | 36 * 37 * Created by Matthias Ringwald on 5/26/09. 38 */ 39 |
40#pragma once 41 |
|
40#include <stdint.h> 41 42typedef enum { 43 HCI_DUMP_BLUEZ = 0, 44 HCI_DUMP_PACKETLOGGER, 45 HCI_DUMP_STDOUT 46} hci_dump_format_t; 47 48void hci_dump_open(char *filename, hci_dump_format_t format); 49void hci_dump_set_max_packets(int packets); // -1 for unlimited 50void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len); | 42#include <stdint.h> 43 44typedef enum { 45 HCI_DUMP_BLUEZ = 0, 46 HCI_DUMP_PACKETLOGGER, 47 HCI_DUMP_STDOUT 48} hci_dump_format_t; 49 50void hci_dump_open(char *filename, hci_dump_format_t format); 51void hci_dump_set_max_packets(int packets); // -1 for unlimited 52void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len); |
53void hci_dump_log(const char * format, ...); |
|
51void hci_dump_close(void); | 54void hci_dump_close(void); |