drv_bluetooth.h 918 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-11-29 bigmagic first version
  9. */
  10. #ifndef __DRV_BT_H__
  11. #define __DRV_BT_H__
  12. #define BT_HCI_COMMAND_PKT (0x01)
  13. #define BT_OGF_HOST_CONTROL (0x03)
  14. #define BT_OGF_LE_CONTROL (0x08)
  15. #define BT_OGF_VENDOR (0x3f)
  16. #define BT_COMMAND_SET_BDADDR (0x01)
  17. #define BT_COMMAND_RESET_CHIP (0x03)
  18. #define BT_COMMAND_SET_BAUD (0x18)
  19. #define BT_COMMAND_LOAD_FIRMWARE (0x2e)
  20. #define BT_HCI_ACL_PKT (0x02)
  21. #define BT_HCI_EVENT_PKT (0x04)
  22. #define BT_COMMAND_COMPLETE_CODE (0x0e)
  23. #define BT_CONNECT_COMPLETE_CODE (0x0f)
  24. #define BT_LL_SCAN_ACTIVE (0x01)
  25. #define BT_LL_ADV_NONCONN_IND (0x03)
  26. #endif