Files
MuditaOS/module-bluetooth/Bluetooth/BtCommand.hpp
Radoslaw Wicik a8573a404c Apply new style
2020-03-17 10:03:16 +01:00

27 lines
634 B
C++

#pragma once
#include <FreeRTOS.h>
#include <task.h>
#include "BluetoothWorker.hpp"
#include "Error.hpp"
#include <functional>
namespace Bt
{
Error initialize_stack();
Error register_hw_error_callback(std::function<void(uint8_t)> new_callback = nullptr);
Error set_name(std::string &name);
Error run_stack(TaskHandle_t *handle);
namespace GAP
{
/// THIS have to be called prior to Bt system start!
Error register_scan();
Error scan();
}; // namespace GAP
namespace PAN
{
Error bnep_start();
Error bnep_setup();
} // namespace PAN
}; // namespace Bt