bt.h 463 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdbool.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef struct Bt Bt;
  8. typedef enum {
  9. BtProfileSerial,
  10. BtProfileHidKeyboard,
  11. } BtProfile;
  12. /**
  13. * Change BLE Profile
  14. * @note Call of this function leads to 2nd core restart
  15. *
  16. * @param bt Bt instance
  17. * @param profile BtProfile
  18. *
  19. * @return true on success
  20. */
  21. bool bt_set_profile(Bt* bt, BtProfile profile);
  22. #ifdef __cplusplus
  23. }
  24. #endif