mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
Merge branch 'dev' of https://github.com/flipperdevices/flipperzero-firmware into xfw-dev
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
|
||||
#define GAP_MAC_ADDR_SIZE (6)
|
||||
|
||||
/*
|
||||
* GAP helpers - background thread that handles BLE GAP events and advertising.
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -19,6 +23,8 @@ typedef enum {
|
||||
GapEventTypePinCodeShow,
|
||||
GapEventTypePinCodeVerify,
|
||||
GapEventTypeUpdateMTU,
|
||||
GapEventTypeBeaconStart,
|
||||
GapEventTypeBeaconStop,
|
||||
} GapEventType;
|
||||
|
||||
typedef union {
|
||||
@@ -73,13 +79,15 @@ typedef struct {
|
||||
|
||||
bool gap_init(GapConfig* config, GapEventCallback on_event_cb, void* context);
|
||||
|
||||
void gap_start_advertising();
|
||||
void gap_start_advertising(void);
|
||||
|
||||
void gap_stop_advertising();
|
||||
void gap_stop_advertising(void);
|
||||
|
||||
GapState gap_get_state();
|
||||
GapState gap_get_state(void);
|
||||
|
||||
void gap_thread_stop();
|
||||
void gap_thread_stop(void);
|
||||
|
||||
void gap_emit_ble_beacon_status_event(bool active);
|
||||
|
||||
uint32_t gap_get_remote_conn_rssi(int8_t* rssi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user