gap.h 325 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <stdbool.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef enum {
  7. GapStateIdle,
  8. GapStateAdvFast,
  9. GapStateAdvLowPower,
  10. GapStateConnected,
  11. } GapState;
  12. bool gap_init();
  13. void gap_start_advertising();
  14. void gap_stop_advertising();
  15. GapState gap_get_state();
  16. #ifdef __cplusplus
  17. }
  18. #endif