1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-02 12:52:34 +00:00
trezor-firmware/core/embed/lib/ble/state.h
tychovrahe d237e155d6 feat(core): rudimentary BLE support
[no changelog]

Co-authored-by: Martin Milata <martin@martinmilata.cz>
2024-01-25 00:21:19 +01:00

30 lines
463 B
C

#ifndef __BLE_STATE__
#define __BLE_STATE__
#include <stdbool.h>
#include <stdint.h>
#include "int_comm_defs.h"
bool ble_initialized(void);
void set_initialized(bool initialized);
bool ble_connected(void);
void set_status(event_status_msg_t *msg);
void start_advertising(bool whitelist);
void auto_start_advertising(void);
void stop_advertising(void);
void ble_set_dfu_mode(bool dfu);
bool is_ble_dfu_mode(void);
void ble_stop_all_comm(void);
#endif