15 BleGlueC2ModeUnknown = 0,
20#define BLE_MAX_VERSION_STRING_LEN (20)
29 uint8_t VersionBranch;
30 uint8_t VersionReleaseType;
31 uint8_t MemorySizeSram2B;
32 uint8_t MemorySizeSram2A;
33 uint8_t MemorySizeSram1;
34 uint8_t MemorySizeFlash;
36 char StackTypeString[BLE_MAX_VERSION_STRING_LEN];
41 uint8_t FusVersionMinor;
42 uint8_t FusVersionSub;
43 uint8_t FusMemorySizeSram2B;
44 uint8_t FusMemorySizeSram2A;
45 uint8_t FusMemorySizeFlash;
52 BleGlueStatusC2Started,
54 BleGlueStatusRadioStackRunning,
55 BleGlueStatusRadioStackMissing
59 *BleGlueKeyStorageChangedCallback)(uint8_t* change_addr_start, uint16_t size,
void* context);
62void ble_glue_init(
void);
68bool ble_glue_start(
void);
70void ble_glue_stop(
void);
76bool ble_glue_is_alive(
void);
82bool ble_glue_wait_for_c2_start(int32_t timeout_ms);
84BleGlueStatus ble_glue_get_c2_status(
void);
92bool ble_glue_is_radio_stack_ready(
void);
99void ble_glue_set_key_storage_changed_callback(
100 BleGlueKeyStorageChangedCallback callback,
103bool ble_glue_reinit_c2(
void);
106 BleGlueCommandResultUnknown,
107 BleGlueCommandResultOK,
108 BleGlueCommandResultError,
109 BleGlueCommandResultRestartPending,
110 BleGlueCommandResultOperationOngoing,
111} BleGlueCommandResult;
117BleGlueCommandResult ble_glue_force_c2_mode(BleGlueC2Mode mode);
119BleGlueCommandResult ble_glue_fus_stack_delete(
void);
121BleGlueCommandResult ble_glue_fus_stack_install(uint32_t src_addr, uint32_t dst_addr);
123BleGlueCommandResult ble_glue_fus_get_status(
void);
125BleGlueCommandResult ble_glue_fus_wait_operation(
void);
uint8_t VersionMajor
Wireless Info.
Definition ble_glue.h:26
uint8_t FusVersionMajor
Fus Info.
Definition ble_glue.h:40
Definition ble_glue.h:127