Files
MuditaOS/module-cellular/at/cmd/CSQ.hpp
Lefucjusz 773f2c7eb1 [BH-2069] Update license URL in headers
Update outdated license file URL in
license headers across all project.
2024-09-18 11:53:01 +02:00

44 lines
921 B
C++

// Copyright (c) 2017-2024, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/blob/master/LICENSE.md
#pragma once
#include "Result.hpp"
#include <at/Cmd.hpp>
#include <functional>
namespace at
{
namespace csq
{
constexpr auto tokensCount = 2;
enum class Tokens
{
Csq,
Ber
};
} // namespace csq
namespace result
{
struct CSQ : public Result
{
uint32_t csq;
uint32_t ber;
explicit CSQ(const Result &);
};
} // namespace result
namespace cmd
{
class CSQ : public Cmd
{
public:
CSQ() noexcept;
explicit CSQ(at::cmd::Modifier mod) noexcept;
[[nodiscard]] auto parseCSQ(const Result &base_result) -> result::CSQ;
};
} // namespace cmd
} // namespace at