~aleteoryx/muditaos

ref: b932e06472ee5d6f28fef424826c54d399f4ce64 muditaos/module-cellular/at/cmd/QCFGUsbnet.hpp -rw-r--r-- 1.1 KiB
b932e064 — Lefucjusz [BH-1823] Fix relaxation start delay for specific MP3 files 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#pragma once

#include "Result.hpp"
#include <at/Cmd.hpp>
#include <functional>
#include <SimInsertedState.hpp>

namespace at
{
    namespace qcfg::usbnet
    {
        constexpr auto tokensCount = 1;
        enum class Net
        {
            RMNET = 0,
            ECM,
            MBIM,
            RNDIS
        };
    } // namespace qcfg::usbnet

    namespace result
    {
        struct QCFGUsbnet : public Result
        {
            qcfg::usbnet::Net net;
            explicit QCFGUsbnet(const Result &that);
        };
    } // namespace result

    namespace cmd
    {
        class QCFGUsbnet : public Cmd
        {
          public:
            QCFGUsbnet() noexcept;
            explicit QCFGUsbnet(at::cmd::Modifier mod) noexcept;

            [[nodiscard]] auto parseQCFGUsbnet(const Result &base_result) -> result::QCFGUsbnet;
            void set(qcfg::usbnet::Net net);
        };
    } // namespace cmd

} // namespace at