api-hal-bt.h 479 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <m-string.h>
  3. #include <stdbool.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /* Initialize */
  8. void api_hal_bt_init();
  9. /* Get BT/BLE system component state */
  10. void api_hal_bt_dump_state(string_t buffer);
  11. /* Get BT/BLE system component state */
  12. bool api_hal_bt_is_alive();
  13. /* Lock shared access to flash controller */
  14. void api_hal_bt_lock_flash();
  15. /* Unlock shared access to flash controller */
  16. void api_hal_bt_unlock_flash();
  17. #ifdef __cplusplus
  18. }
  19. #endif