class SensorFeatureDescriptor
Defined at line 5578 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
Describes the format of the sensor's feature report. Feature reports can be
requested from the sensor, or sent to the sensor.
At least one of the fields below must be present.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
SensorFeatureDescriptor & set_report_interval (::fuchsia::input::report::Axis _value)
SensorFeatureDescriptor & set_sensitivity (::std::vector< ::fuchsia::input::report::SensorAxis> _value)
SensorFeatureDescriptor & set_supports_reporting_state (bool _value)
SensorFeatureDescriptor & set_threshold_high (::std::vector< ::fuchsia::input::report::SensorAxis> _value)
SensorFeatureDescriptor & set_threshold_low (::std::vector< ::fuchsia::input::report::SensorAxis> _value)
SensorFeatureDescriptor & set_sampling_rate (::fuchsia::input::report::Axis _value)
SensorFeatureDescriptor & set_report_id (uint8_t _value)
void SensorFeatureDescriptor ()
void SensorFeatureDescriptor (SensorFeatureDescriptor && other)
void ~SensorFeatureDescriptor ()
SensorFeatureDescriptor & operator= (SensorFeatureDescriptor && other)
::std::unique_ptr<SensorFeatureDescriptor> New ()
void Encode (::fidl::Encoder *_encoder,size_t_offset,std::optional< ::fidl::HandleInformation>maybe_handle_info)
void Decode (::fidl::Decoder *_decoder,SensorFeatureDescriptor *_value,size_t_offset)
zx_status_t Clone (SensorFeatureDescriptor * _result)
const ::fuchsia::input::report::Axis & report_interval ()
Valid range of the reporting interval for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the reporting
interval.
Defined at line 5588 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_report_interval ()
Defined at line 5592 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::Axis * mutable_report_interval ()
Valid range of the reporting interval for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the reporting
interval.
Defined at line 5600 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_report_interval ()
Defined at line 5608 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::std::vector< ::fuchsia::input::report::SensorAxis> & sensitivity ()
Valid range of the sensitivity for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the sensitivity.
Defined at line 5619 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_sensitivity ()
Defined at line 5623 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::std::vector< ::fuchsia::input::report::SensorAxis> * mutable_sensitivity ()
Valid range of the sensitivity for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the sensitivity.
Defined at line 5630 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_sensitivity ()
Defined at line 5638 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const bool & supports_reporting_state ()
True iff `SensorFeatureReport` supports setting/getting the
`SensorReportingState`.
Optional. Present iff sensor supports getting/setting the reporting
state.
Defined at line 5651 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_supports_reporting_state ()
Defined at line 5655 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool * mutable_supports_reporting_state ()
True iff `SensorFeatureReport` supports setting/getting the
`SensorReportingState`.
Optional. Present iff sensor supports getting/setting the reporting
state.
Defined at line 5664 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_supports_reporting_state ()
Defined at line 5672 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::std::vector< ::fuchsia::input::report::SensorAxis> & threshold_high ()
Valid range of the high threshold values for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the high
threshold values.
Defined at line 5684 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_threshold_high ()
Defined at line 5688 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::std::vector< ::fuchsia::input::report::SensorAxis> * mutable_threshold_high ()
Valid range of the high threshold values for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the high
threshold values.
Defined at line 5696 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_threshold_high ()
Defined at line 5704 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::std::vector< ::fuchsia::input::report::SensorAxis> & threshold_low ()
Valid range of the low threshold values for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the low
threshold values.
Defined at line 5716 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_threshold_low ()
Defined at line 5720 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::std::vector< ::fuchsia::input::report::SensorAxis> * mutable_threshold_low ()
Valid range of the low threshold values for the given `SensorType`.
Optional. Present iff sensor supports getting/setting the low
threshold values.
Defined at line 5728 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_threshold_low ()
Defined at line 5736 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const ::fuchsia::input::report::Axis & sampling_rate ()
Valid range of sampling rates this sensor supports.
Optional. Present iff sensor supports getting/setting the sampling
rate.
Defined at line 5748 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_sampling_rate ()
Defined at line 5752 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
::fuchsia::input::report::Axis * mutable_sampling_rate ()
Valid range of sampling rates this sensor supports.
Optional. Present iff sensor supports getting/setting the sampling
rate.
Defined at line 5760 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_sampling_rate ()
Defined at line 5768 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
const uint8_t & report_id ()
A sensor may have multiple feature descriptors of the same type.
Reports with the same report ID are associated with this descriptor.
Required iff the sensor has more than one feature descriptors.
Defined at line 5780 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
bool has_report_id ()
Defined at line 5784 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
uint8_t * mutable_report_id ()
A sensor may have multiple feature descriptors of the same type.
Reports with the same report ID are associated with this descriptor.
Required iff the sensor has more than one feature descriptors.
Defined at line 5792 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h
void clear_report_id ()
Defined at line 5800 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h