ble_glue.h 529 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <stdint.h>
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef void(*BleGlueKeyStorageChangedCallback)(uint8_t* change_addr_start, uint16_t size, void* context);
  7. typedef enum {
  8. BleGlueStatusUninitialized,
  9. BleGlueStatusStartup,
  10. BleGlueStatusBleStackMissing,
  11. BleGlueStatusStarted
  12. } BleGlueStatus;
  13. void ble_glue_init();
  14. BleGlueStatus ble_glue_get_status();
  15. void ble_glue_set_key_storage_changed_callback(BleGlueKeyStorageChangedCallback callback, void* context);
  16. #ifdef __cplusplus
  17. }
  18. #endif