-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfp_context_command.h
40 lines (30 loc) · 1.02 KB
/
fp_context_command.h
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
// Copyright 2019 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BIOD_FP_CONTEXT_COMMAND_H_
#define BIOD_FP_CONTEXT_COMMAND_H_
#include <memory>
#include <string>
#include "biod/ec_command.h"
#include "biod/ec_command_async.h"
namespace biod {
class FpContextCommand_v0
: public EcCommand<struct ec_params_fp_context, EmptyParam> {
public:
~FpContextCommand_v0() override = default;
static std::unique_ptr<FpContextCommand_v0> Create(const std::string& hex);
private:
FpContextCommand_v0();
};
class FpContextCommand_v1
: public EcCommandAsync<struct ec_params_fp_context_v1, EmptyParam> {
public:
~FpContextCommand_v1() override = default;
static std::unique_ptr<FpContextCommand_v1> Create(const std::string& hex);
private:
using Options =
EcCommandAsync<struct ec_params_fp_context_v1, EmptyParam>::Options;
FpContextCommand_v1();
};
} // namespace biod
#endif // BIOD_FP_CONTEXT_COMMAND_H_