Files
MuditaOS/module-bluetooth/Bluetooth/Error.hpp
Bartek Cichocki 2060dd964f [EGD-2625] added BT scan
[EGD-2625] moved btstack to mudita_develop branch
2020-09-29 13:51:58 +02:00

26 lines
467 B
C++

#pragma once
#include <cstdint>
#include <variant>
#include <optional>
namespace Bt
{
struct Error
{
enum Code
{
Success,
NotReady,
SystemError,
LibraryError,
} err = Success;
uint32_t lib_code = 0;
Error(enum Code err = Success, int lib_code = Success) : err(err), lib_code(0)
{}
};
} // namespace Bt
const char *c_str(Bt::Error::Code code);