api-hal-bt.h 533 B

1234567891011121314151617181920212223242526272829
  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. * @return true if lock was successful, false if not
  15. */
  16. bool api_hal_bt_lock_flash();
  17. /* Unlock shared access to flash controller */
  18. void api_hal_bt_unlock_flash();
  19. #ifdef __cplusplus
  20. }
  21. #endif