建立 MAG160C 逆向工程交接仓库
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef MAG160C_CORE_IR_DEVICE_HPP
|
||||
#define MAG160C_CORE_IR_DEVICE_HPP
|
||||
|
||||
#include "mag160c/mag160c.h"
|
||||
|
||||
namespace mag160c::core {
|
||||
|
||||
class IrDevice {
|
||||
public:
|
||||
IrDevice();
|
||||
|
||||
const mag160c_ir_info_t& info() const noexcept;
|
||||
mag160c_error_t trigger_ffc() const;
|
||||
mag160c_error_t read_raw_once(
|
||||
unsigned char* out_bytes,
|
||||
size_t out_capacity,
|
||||
size_t* out_size,
|
||||
int timeout_ms
|
||||
) const;
|
||||
|
||||
private:
|
||||
mag160c_ir_info_t info_{};
|
||||
};
|
||||
|
||||
} // namespace mag160c::core
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user