mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 03:03:10 +00:00
27 lines
529 B
C
27 lines
529 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef void(*BleGlueKeyStorageChangedCallback)(uint8_t* change_addr_start, uint16_t size, void* context);
|
||
|
|
||
|
typedef enum {
|
||
|
BleGlueStatusUninitialized,
|
||
|
BleGlueStatusStartup,
|
||
|
BleGlueStatusBleStackMissing,
|
||
|
BleGlueStatusStarted
|
||
|
} BleGlueStatus;
|
||
|
|
||
|
void ble_glue_init();
|
||
|
|
||
|
BleGlueStatus ble_glue_get_status();
|
||
|
|
||
|
void ble_glue_set_key_storage_changed_callback(BleGlueKeyStorageChangedCallback callback, void* context);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|