blob: d4bf245c073a847e19d3e54929ba2d7f3fe22f26 [file] [log] [blame]
// 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 LIBEC_FINGERPRINT_FP_CONTEXT_COMMAND_H_
#define LIBEC_FINGERPRINT_FP_CONTEXT_COMMAND_H_
#include <memory>
#include <string>
#include "libec/ec_command.h"
#include "libec/ec_command_async.h"
namespace ec {
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 ec
#endif // LIBEC_FINGERPRINT_FP_CONTEXT_COMMAND_H_