logging_helpers.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright 2015 Google, Inc.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at:
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. #pragma once
  17. #include <string.h>
  18. #include <string>
  19. #include "hardware/bluetooth.h"
  20. #include "hardware/bt_av.h"
  21. #include "hardware/bt_gatt_types.h"
  22. const char* BtAvConnectionStateText(const btav_connection_state_t state);
  23. const char* BtAvAudioStateText(const btav_audio_state_t state);
  24. const char* BtTransportText(const btgatt_transport_t t);
  25. const char* BtStateText(const bt_state_t state);
  26. const char* BtDiscoveryStateText(const bt_discovery_state_t);
  27. const char* BtScanModeText(const bt_scan_mode_t mode);
  28. const char* BtStatusText(const bt_status_t status);
  29. const char* BtPropertyText(const bt_property_type_t prop);
  30. const char* BtEventText(const bt_cb_thread_evt evt);
  31. const char* BtAclText(const bt_acl_state_t state);
  32. // TODO(icoolidge): Address object.
  33. std::string BtAddrString(const RawAddress* addr);