Files
hailort/hailort/hailortcli/fw_control_command.hpp
HailoRT-Automation dd37bf9936 v4.6.0
2022-03-29 19:08:05 +03:00

59 lines
1.5 KiB
C++

/**
* Copyright (c) 2020-2022 Hailo Technologies Ltd. All rights reserved.
* Distributed under the MIT license (https://opensource.org/licenses/MIT)
**/
/**
* @file fw_control.hpp
* @brief Several controls that can be sent to the firware
**/
#ifndef _HAILO_FW_CONTROL_COMMAND_HPP_
#define _HAILO_FW_CONTROL_COMMAND_HPP_
#include "hailortcli.hpp"
#include "command.hpp"
// TODO: Remove scan as a subcommand of fw_control_subcommand (HRT-2676)
#include "scan_command.hpp"
#if defined(__GNUC__)
// TODO: Support on windows (HRT-5919)
#include "download_action_list_command.hpp"
#endif
class FwControlIdentifyCommand : public DeviceCommand {
public:
explicit FwControlIdentifyCommand(CLI::App &parent_app);
protected:
virtual hailo_status execute_on_device(Device &device) override;
private:
bool m_is_extended;
};
class FwControlResetCommand : public DeviceCommand {
public:
explicit FwControlResetCommand(CLI::App &parent_app);
protected:
virtual hailo_status execute_on_device(Device &device) override;
private:
hailo_reset_device_mode_t m_reset_mode;
};
class FwControlTestMemoriesCommand : public DeviceCommand {
public:
explicit FwControlTestMemoriesCommand(CLI::App &parent_app);
protected:
virtual hailo_status execute_on_device(Device &device) override;
};
class FwControlCommand : public ContainerCommand {
public:
explicit FwControlCommand(CLI::App &parent_app);
};
#endif /* _HAILO_FW_CONTROL_COMMAND_HPP_ */