8#define GAP_MAC_ADDR_SIZE (6)
19 GapEventTypeConnected,
20 GapEventTypeDisconnected,
21 GapEventTypeStartAdvertising,
22 GapEventTypeStopAdvertising,
23 GapEventTypePinCodeShow,
24 GapEventTypePinCodeVerify,
25 GapEventTypeUpdateMTU,
26 GapEventTypeBeaconStart,
27 GapEventTypeBeaconStop,
32 uint16_t max_packet_size;
40typedef bool (*GapEventCallback)(
GapEvent event,
void* context);
43 GapStateUninitialized,
53 GapPairingPinCodeShow,
54 GapPairingPinCodeVerifyYesNo,
58 uint16_t conn_interval;
59 uint16_t slave_latency;
60 uint16_t supervisor_timeout;
64 uint16_t conn_int_min;
65 uint16_t conn_int_max;
66 uint16_t slave_latency;
67 uint16_t supervisor_timeout;
71 uint16_t adv_service_uuid;
72 uint16_t appearance_char;
74 GapPairing pairing_method;
75 uint8_t mac_address[GAP_MAC_ADDR_SIZE];
80bool gap_init(
GapConfig* config, GapEventCallback on_event_cb,
void* context);
82void gap_start_advertising(
void);
84void gap_stop_advertising(
void);
86GapState gap_get_state(
void);
88void gap_thread_stop(
void);
90void gap_emit_ble_beacon_status_event(
bool active);
#define FURI_HAL_VERSION_DEVICE_NAME_LENGTH
BLE symbol + "Flipper " + name.
Definition furi_hal_version.h:20