btc_dev.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. // http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. // Unless required by applicable law or agreed to in writing, software
  9. // distributed under the License is distributed on an "AS IS" BASIS,
  10. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. // See the License for the specific language governing permissions and
  12. // limitations under the License.
  13. #ifndef __BTC_DEV_H__
  14. #define __BTC_DEV_H__
  15. #include "esp_bt_defs.h"
  16. #include "esp_bt_device.h"
  17. #include "btc/btc_task.h"
  18. typedef enum {
  19. BTC_DEV_ACT_SET_DEVICE_NAME
  20. } btc_dev_act_t;
  21. /* btc_dev_args_t */
  22. typedef union {
  23. // BTC_BT_GAP_ACT_SET_DEV_NAME
  24. struct set_bt_dev_name_args {
  25. #define ESP_DEV_DEVICE_NAME_MAX (32)
  26. char device_name[ESP_DEV_DEVICE_NAME_MAX + 1];
  27. } set_dev_name;
  28. } btc_dev_args_t;
  29. void btc_dev_call_handler(btc_msg_t *msg);
  30. #endif /* __BTC_DEV_H__ */