[FL-2580] FuriHal: add more supported radio stacks (#1301)
* FuriHal: add more supported radio stacks * Bt: correct ble stack enum value * Bt: update cli testing commands implementation * Scripts: always emitting ob data to update manifest; added ob_custradio.data for non-light radio stacks * Scripts: added stack type whitelist & disclaimer message * ble: remove scanner * ble: remove HCI and advances ble stacks support * bt: correctly close RPC session before bt reinit * Scripts: update bundler: estimating flash layout & refusing to build dangerous packages; app frame: not adding redundant log handlers * Docs: additional details on bundling updates; fixed updater error codes * Docs: wording fixes for OTA.md Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include "furi_hal_bt_serial.h"
|
||||
|
||||
#define FURI_HAL_BT_STACK_VERSION_MAJOR (1)
|
||||
#define FURI_HAL_BT_STACK_VERSION_MINOR (13)
|
||||
#define FURI_HAL_BT_STACK_VERSION_MINOR (12)
|
||||
#define FURI_HAL_BT_C2_START_TIMEOUT 1000
|
||||
|
||||
#ifdef __cplusplus
|
||||
@@ -24,8 +24,8 @@ extern "C" {
|
||||
|
||||
typedef enum {
|
||||
FuriHalBtStackUnknown,
|
||||
FuriHalBtStackHciLayer,
|
||||
FuriHalBtStackLight,
|
||||
FuriHalBtStackFull,
|
||||
} FuriHalBtStack;
|
||||
|
||||
typedef enum {
|
||||
@@ -58,6 +58,18 @@ bool furi_hal_bt_start_radio_stack();
|
||||
*/
|
||||
FuriHalBtStack furi_hal_bt_get_radio_stack();
|
||||
|
||||
/** Check if radio stack supports BLE GAT/GAP
|
||||
*
|
||||
* @return true if supported
|
||||
*/
|
||||
bool furi_hal_bt_is_ble_gatt_gap_supported();
|
||||
|
||||
/** Check if radio stack supports testing
|
||||
*
|
||||
* @return true if supported
|
||||
*/
|
||||
bool furi_hal_bt_is_testing_supported();
|
||||
|
||||
/** Start BLE app
|
||||
*
|
||||
* @param profile FuriHalBtProfile instance
|
||||
@@ -206,17 +218,6 @@ float furi_hal_bt_get_rssi();
|
||||
*/
|
||||
uint32_t furi_hal_bt_get_transmitted_packets();
|
||||
|
||||
/** Start MAC addresses scan
|
||||
* @note Works only with HciLayer 2nd core firmware
|
||||
*
|
||||
* @param callback GapScanCallback instance
|
||||
* @param context pointer to context
|
||||
*/
|
||||
bool furi_hal_bt_start_scan(GapScanCallback callback, void* context);
|
||||
|
||||
/** Stop MAC addresses scan */
|
||||
void furi_hal_bt_stop_scan();
|
||||
|
||||
/** Check & switch C2 to given mode
|
||||
*
|
||||
* @param[in] mode mode to switch into
|
||||
|
Reference in New Issue
Block a user