mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-20 03:41:42 +03:00
917410a0a8
* fbt: reworking targets & assets handling WIP * fbt: dist fixes * fbt: moved SD card resources to owning apps * unit_tests: moved resources to app folder * github: updated unit_tests paths * github: packaging fixes * unit_tests: fixes * fbt: assets: internal cleanup * fbt: reworked assets handling * github: unit_tests: reintroducing fixes * minor cleanup * fbt: naming changes to reflect private nature of scons tools * fbt: resources: fixed dist archive paths * docs: updated paths * docs: updated more paths * docs: included "resources" parameter in app manifest docs; updated assets readme * updated gitignore for assets * github: updated action versions * unit_tests: restored timeout; scripts: assets: logging changes * gh: don't upload desktop animations for unit test run Co-authored-by: あく <alleteam@gmail.com>
60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
#pragma once
|
|
|
|
#include <services/serial_service.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define FURI_HAL_BT_SERIAL_PACKET_SIZE_MAX SERIAL_SVC_DATA_LEN_MAX
|
|
|
|
typedef enum {
|
|
FuriHalBtSerialRpcStatusNotActive,
|
|
FuriHalBtSerialRpcStatusActive,
|
|
} FuriHalBtSerialRpcStatus;
|
|
|
|
/** Serial service callback type */
|
|
typedef SerialServiceEventCallback FuriHalBtSerialCallback;
|
|
|
|
/** Start Serial Profile
|
|
*/
|
|
void furi_hal_bt_serial_start();
|
|
|
|
/** Stop Serial Profile
|
|
*/
|
|
void furi_hal_bt_serial_stop();
|
|
|
|
/** Set Serial service events callback
|
|
*
|
|
* @param buffer_size Applicaition buffer size
|
|
* @param calback FuriHalBtSerialCallback instance
|
|
* @param context pointer to context
|
|
*/
|
|
void furi_hal_bt_serial_set_event_callback(
|
|
uint16_t buff_size,
|
|
FuriHalBtSerialCallback callback,
|
|
void* context);
|
|
|
|
/** Set BLE RPC status
|
|
*
|
|
* @param status FuriHalBtSerialRpcStatus instance
|
|
*/
|
|
void furi_hal_bt_serial_set_rpc_status(FuriHalBtSerialRpcStatus status);
|
|
|
|
/** Notify that application buffer is empty
|
|
*/
|
|
void furi_hal_bt_serial_notify_buffer_is_empty();
|
|
|
|
/** Send data through BLE
|
|
*
|
|
* @param data data buffer
|
|
* @param size data buffer size
|
|
*
|
|
* @return true on success
|
|
*/
|
|
bool furi_hal_bt_serial_tx(uint8_t* data, uint16_t size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|