Loading...
Searching...
No Matches
serial_profile.h
1#pragma once
2
3#include <furi_ble/profile_interface.h>
4
5#include <services/serial_service.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
11#define BLE_PROFILE_SERIAL_PACKET_SIZE_MAX BLE_SVC_SERIAL_DATA_LEN_MAX
12
13typedef enum {
14 FuriHalBtSerialRpcStatusNotActive,
15 FuriHalBtSerialRpcStatusActive,
16} FuriHalBtSerialRpcStatus;
17
19typedef SerialServiceEventCallback FuriHalBtSerialCallback;
20
22extern const FuriHalBleProfileTemplate* ble_profile_serial;
23
32bool ble_profile_serial_tx(FuriHalBleProfileBase* profile, uint8_t* data, uint16_t size);
33
39void ble_profile_serial_set_rpc_active(FuriHalBleProfileBase* profile, bool active);
40
44void ble_profile_serial_notify_buffer_is_empty(FuriHalBleProfileBase* profile);
45
53void ble_profile_serial_set_event_callback(
54 FuriHalBleProfileBase* profile,
55 uint16_t buff_size,
56 FuriHalBtSerialCallback callback,
57 void* context);
58
59#ifdef __cplusplus
60}
61#endif
Definition profile_interface.h:14
Definition profile_interface.h:28