Microchip® Advanced Software Framework

btstack_debug.h File Reference
#include "btstack_config.h"
#include "btstack_defines.h"
#include "hci_dump.h"
#include <stdio.h>

Macros

#define __BTSTACK_FILE__   __FILE__
 
#define BTSTACK_PRINTF(format,...)   printf(format, ## __VA_ARGS__)
 
#define HCI_DUMP_LOG(log_level, format,...)   hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
 
#define log_debug(...)   __log_unused(__VA_ARGS__)
 
#define log_error(...)   __log_unused(__VA_ARGS__)
 
#define log_info(...)   __log_unused(__VA_ARGS__)
 

Functions

static void __log_unused (const char *format,...)
 
void log_debug_hexdump (const void *data, int size)
 Hexdump via log_debug *. More...
 
void log_info_hexdump (const void *data, int size)
 Hexdump via log_info. More...
 
void log_info_key (const char *name, sm_key_t key)
 Log Security Manager key via log_info. More...
 

#define __BTSTACK_FILE__   __FILE__
#define BTSTACK_PRINTF (   format,
  ... 
)    printf(format, ## __VA_ARGS__)
#define HCI_DUMP_LOG (   log_level,
  format,
  ... 
)    hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
#define log_info (   ...)    __log_unused(__VA_ARGS__)

Referenced by att_dump_attributes(), att_event_packet_handler(), att_handle_request(), att_packet_handler(), att_read_callback(), att_run_for_context(), att_write_callback(), atwilc3000_configure_uart(), atwilc3000_vendor_specific_reset(), atwilc3000_w4_command_complete_read_local_version_information(), atwilc3000_write_memory(), btstack_run_loop_freertos_dump_timer(), btstack_run_loop_freertos_init(), create_connection_for_bd_addr_and_type(), event_handler(), gap_random_address_trigger(), gap_random_address_update_handler(), gatt_client_att_packet_handler(), gatt_client_hci_event_packet_handler(), gatt_client_timeout_handler(), gatt_client_timeout_start(), gatt_client_timeout_stop(), gatt_client_write_client_characteristic_configuration(), hal_uart_dma_init(), handle_find_by_type_value_request2(), handle_find_information_request2(), handle_hci_event(), handle_read_blob_request2(), handle_read_by_group_type_request2(), handle_read_by_type_request2(), handle_read_multiple_request2(), handle_read_request2(), hci_emit_dedicated_bonding_result(), hci_emit_hci_open_failed(), hci_emit_nr_connections_changed(), hci_init_done(), hci_initialization_timeout_handler(), hci_initializing_event_handler(), hci_initializing_run(), hci_power_control(), hci_power_control_off(), hci_power_control_sleep(), hci_power_control_wake(), hci_run(), hci_send_cmd_packet(), hci_shutdown_connection(), hci_transport_h4_block_read(), hci_transport_h4_send_packet(), hci_transport_h4_set_baudrate(), hci_transport_h5_block_received(), hci_transport_h5_block_sent(), hci_transport_h5_emit_sleep_state(), hci_transport_h5_open(), hci_transport_h5_process_frame(), hci_transport_h5_reset_link(), hci_transport_h5_send_packet(), hci_transport_h5_set_baudrate(), hci_transport_inactivity_timeout_handler(), hci_transport_link_calc_resend_timeout(), hci_transport_link_timeout_handler(), l2cap_acl_classic_handler(), l2cap_acl_le_handler(), l2cap_hci_event_handler(), l2cap_run(), l2cap_send_connectionless(), l2cap_send_prepared_connectionless(), le_device_db_add(), le_device_db_dump(), le_device_db_encryption_get(), le_device_db_encryption_set(), log_info_hex16(), log_info_key(), packet_handler(), sm_address_resolution_handle_event(), sm_done_for_handle(), sm_event_packet_handler(), sm_handle_encryption_result(), sm_handle_random_result(), sm_key_distribution_handle_all_received(), sm_pdu_handler(), sm_request_pairing(), sm_run(), sm_setup_tk(), sm_stk_generation_init(), and sm_timeout_handler().

static void __log_unused ( const char *  format,
  ... 
)
inlinestatic

References UNUSED.

void log_debug_hexdump ( const void *  data,
int  size 
)

Hexdump via log_debug *.

Parameters
data
size

References LOG_LEVEL_DEBUG, and UNUSED.

Referenced by hci_transport_h5_process_frame(), hci_transport_link_send_control(), and hci_transport_link_send_queued_packet().

void log_info_key ( const char *  name,
sm_key_t  key 
)