hci_dump.h (2fca4dad957cd7b88f4657ed51e89c12615dda72) hci_dump.h (2d17d4c0682d450ab238973b9cc335f0518b6547)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
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

--- 69 unchanged lines hidden (view full) ---

78} hci_dump_format_t;
79
80typedef struct {
81 // reset output, called if max packets is reached, to limit file size
82 void (*reset)(void);
83 // log packet
84 void (*log_packet)(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
85 // log message
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
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

--- 69 unchanged lines hidden (view full) ---

78} hci_dump_format_t;
79
80typedef struct {
81 // reset output, called if max packets is reached, to limit file size
82 void (*reset)(void);
83 // log packet
84 void (*log_packet)(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
85 // log message
86 void (*log_message)(const char * format, va_list argptr);
86 void (*log_message)(int log_level, const char * format, va_list argptr);
87#ifdef __AVR__ \
88 // log message - AVR
87#ifdef __AVR__ \
88 // log message - AVR
89 void (*log_message_P)(PGM_P * format, va_list argptr);
89 void (*log_message_P)(int log_level, PGM_P * format, va_list argptr);
90#endif
91} hci_dump_t;
92
93/**
94 * @brief Init HCI Dump
95 * @param hci_dump_impl - platform-specific implementation
96 */
97void hci_dump_init(const hci_dump_t * hci_dump_impl);

--- 91 unchanged lines hidden ---
90#endif
91} hci_dump_t;
92
93/**
94 * @brief Init HCI Dump
95 * @param hci_dump_impl - platform-specific implementation
96 */
97void hci_dump_init(const hci_dump_t * hci_dump_impl);

--- 91 unchanged lines hidden ---