mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 02:03:18 +00:00
610f4f5d73
* targets/api-hal: rework documentation in doxygen style * core/api-hal: rework documentation in doxygen style * core/furi: rework documentation in doxygen style * drivers: rework documentation in doxygen style Co-authored-by: あく <alleteam@gmail.com>
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include <m-string.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Initialize */
|
|
void api_hal_bt_init();
|
|
|
|
/** Start BLE app */
|
|
bool api_hal_bt_start_app();
|
|
|
|
/** Get BT/BLE system component state */
|
|
void api_hal_bt_dump_state(string_t buffer);
|
|
|
|
/** Get BT/BLE system component state */
|
|
bool api_hal_bt_is_alive();
|
|
|
|
/**
|
|
* Lock shared access to flash controller
|
|
* @return true if lock was successful, false if not
|
|
*/
|
|
bool api_hal_bt_lock_flash();
|
|
|
|
/** Unlock shared access to flash controller */
|
|
void api_hal_bt_unlock_flash();
|
|
|
|
/** Start ble tone tx at given channel and power */
|
|
void api_hal_bt_start_tone_tx(uint8_t tx_channel, uint8_t power);
|
|
|
|
/** Stop ble tone tx */
|
|
void api_hal_bt_stop_tone_tx();
|
|
|
|
/** Start sending ble packets at a given frequency and datarate */
|
|
void api_hal_bt_start_packet_tx(uint8_t frequency, uint8_t datarate);
|
|
|
|
/** Stop sending ble packets */
|
|
void api_hal_bt_stop_packet_tx();
|
|
|
|
/** Set up the RF to listen to a given RF channel */
|
|
void api_hal_bt_start_rx(uint8_t frequency);
|
|
|
|
/** Stop RF listenning */
|
|
void api_hal_bt_stop_rx();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|