27 uint8_t commands_count,
28 FuriEventLoop* event_loop);
92 const void*
const data,
93 const size_t data_size,
void ble_command_engine_put_command_no_wait(BleCommandEngine *instance, BleSystemCommand code, void *data, size_t data_size)
Put command into queue and return.
Definition ble_command_engine.c:162
bool ble_command_engine_put_command(BleCommandEngine *instance, BleSystemCommand code, void *data, size_t data_size)
Put command into queue and wait until it is processed by ble thread.
Definition ble_command_engine.c:175
void ble_command_engine_unblock_with_result(BleCommandEngine *instance, const void *const data, const size_t data_size, bool result)
Unblocks command engine when command is done.
Definition ble_command_engine.c:205
BleCommandEngine * ble_command_engine_alloc(Ble *ble, const BleCommandItem *commands, uint8_t commands_count, FuriEventLoop *event_loop)
Allocates command engine instance with command array provided from the outside.
Definition ble_command_engine.c:107
bool ble_command_engine_run(BleCommandEngine *instance, BleIntercomFrameGeneric *frame)
Perform command processing, command frame can be extracted from command buffer or from intercom for U...
Definition ble_command_engine.c:138
Typedefs used for data exchange via intercom between ble services on both chips.
Available ble commands definition and common methods.
BleSystemCommand
Enumeration of possible ble commands.
Definition ble_system_command.h:17
Definition ble_command_engine.c:23
Struct for one command handlers.
Definition ble_system_command.h:42
Frame header with fields which help control frame exchange.
Definition ble_intercom_types.h:40