You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#pragma once
#include "basic_type.hpp"
namespace iflytop { using namespace std;
class I_MotorLaserCodeScanner { public: #pragma pack(push, 1)
typedef struct { int32_t each_scan_result_len; int32_t scan_reult_nums; uint8_t scan_result[]; } scan_result_t; #pragma pack(pop)
public: /**
* @brief ����ɨ�� * * @param moveby_distance �ƶ����� * @param scan_interval_distance ÿ��ɨ���������� * @param each_sample_times ÿ�β������� * @param transmitting_tube_amplification �����ܷŴ����� * @param receiving_tube_amplification ���չܷŴ����� */ virtual int32_t start_scan(s32 moveby_distance, //
s32 scan_interval_distance, //
s32 each_sample_times, //
s32 transmitting_tube_amplification, //
s32 receiving_tube_amplification, //
action_cb_status_t cb) = 0; /**
* @brief ֹͣɨ�� * * @return int32_t */ virtual int32_t stop_scan() = 0; /**
* @brief ��ȡɨ������ * * @param result * @return int32_t */ virtual int32_t get_scan_result(u16 sector_index, u16 sector_size, zcancmder_read_ram_ack_t& ack) = 0; };
} // namespace iflytop
|