28 lines
505 B
C++
28 lines
505 B
C++
#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
|