class DeviceInformation

Defined at line 1191 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

DeviceInformation provides more information about the device and lets a

client distinguish between devices (e.g between two touchscreens that come

from different vendors). If the device is a HID device, then the id

information will come from the device itself. Other, non-HID devices may

assign the ids in the driver, so it will be the driver author's

responsibility to assign sensible ids.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

DeviceInformation & set_vendor_id (uint32_t _value)
DeviceInformation & set_product_id (uint32_t _value)
DeviceInformation & set_version (uint32_t _value)
DeviceInformation & set_polling_rate (int64_t _value)
DeviceInformation & set_manufacturer_name (::std::string _value)
DeviceInformation & set_product_name (::std::string _value)
DeviceInformation & set_serial_number (::std::string _value)
void DeviceInformation ()
void DeviceInformation (DeviceInformation && other)
void ~DeviceInformation ()
DeviceInformation & operator= (DeviceInformation && other)
::std::unique_ptr<DeviceInformation> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, DeviceInformation * _value, size_t _offset)
zx_status_t Clone (DeviceInformation * _result)
const uint32_t & vendor_id ()

Required.

Defined at line 1198 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_vendor_id ()

Defined at line 1202 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

uint32_t * mutable_vendor_id ()

Required.

Defined at line 1207 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_vendor_id ()

Defined at line 1215 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const uint32_t & product_id ()

Required.

Defined at line 1224 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_product_id ()

Defined at line 1228 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

uint32_t * mutable_product_id ()

Required.

Defined at line 1233 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_product_id ()

Defined at line 1241 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const uint32_t & version ()

Optional.

Defined at line 1250 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_version ()

Defined at line 1254 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

uint32_t * mutable_version ()

Optional.

Defined at line 1259 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_version ()

Defined at line 1267 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const int64_t & polling_rate ()

The time interval between each poll of the device.

Optional.

Defined at line 1278 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_polling_rate ()

Defined at line 1282 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

int64_t * mutable_polling_rate ()

The time interval between each poll of the device.

Optional.

Defined at line 1289 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_polling_rate ()

Defined at line 1297 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const ::std::string & manufacturer_name ()

Human-readable name of the manufacturer. Optional.

Must be non-empty if present.

Defined at line 1307 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_manufacturer_name ()

Defined at line 1311 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

::std::string * mutable_manufacturer_name ()

Human-readable name of the manufacturer. Optional.

Must be non-empty if present.

Defined at line 1317 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_manufacturer_name ()

Defined at line 1325 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const ::std::string & product_name ()

Human-readable name of the product. Optional.

Must be non-empty if present.

Defined at line 1335 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_product_name ()

Defined at line 1339 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

::std::string * mutable_product_name ()

Human-readable name of the product. Optional.

Must be non-empty if present.

Defined at line 1345 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_product_name ()

Defined at line 1353 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

const ::std::string & serial_number ()

Serial number of the device. Optional.

Must be non-empty if present.

Defined at line 1363 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

bool has_serial_number ()

Defined at line 1367 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

::std::string * mutable_serial_number ()

Serial number of the device. Optional.

Must be non-empty if present.

Defined at line 1373 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h

void clear_serial_number ()

Defined at line 1381 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/hlcpp/fuchsia/input/report/cpp/fidl.h