42 "write_fs_attribute supports arithmetic and std::string types only");
45 std::fstream fs_handle(path);
46 if (!fs_handle.good())
48 LOG_WARNING(__FUNCTION__ <<
" with " << val <<
" failed. The specified path " << path <<
" is not valid");
63 std::ifstream vnv_handle(path);
68 LOG_WARNING(__FUNCTION__ <<
" Could not change " << cval <<
" to " << val <<
" : path " << path);
71 catch (
const std::exception& exc)
73 LOG_WARNING(__FUNCTION__ <<
" with " << path <<
" failed: " << exc.what());
83 hid_input(
const std::string& iio_device_path,
const std::string& input_name);
87 void enable(
bool is_enable);
113 std::vector<uint8_t> read_report(
const std::string& name_report_path);
117 void enable(
bool state);
122 int _stop_pipe_fd[2];
149 void set_frequency(
uint32_t frequency);
150 void set_power(
bool on);
158 void create_channel_array();
169 std::string get_sampling_frequency_name()
const;
172 void read_device_inputs();
174 int _stop_pipe_fd[2];
196 void register_profiles(
const std::vector<hid_profile>& hid_profiles)
override { _hid_profiles = hid_profiles;}
198 void open(
const std::vector<hid_profile>& hid_profiles)
override;
200 void close()
override;
202 std::vector<hid_sensor> get_sensors()
override;
206 void stop_capture()
override;
208 std::vector<uint8_t> get_custom_report_data(
const std::string& custom_sensor_name,
209 const std::string& report_name,
223 static constexpr
const char* custom_id{
"custom"};
def info(name, value, persistent=False)
unsigned __int64 uint64_t
GLenum GLenum GLsizei const GLuint GLboolean enabled