QMI.DeviceManagement (qmi v0.10.2)

View Source

Device Management service requests

Summary

Functions

Get the firmware information

Get the hardware information

Get the device manufacturer information

Get the device model information

Get the operating mode

Get the device serial numbers

Set the operating mode

Functions

get_firmware_rev(qmi)

@spec get_firmware_rev(QMI.name()) :: {:ok, map()} | {:error, any()}

Get the firmware information

get_hardware_rev(qmi)

@spec get_hardware_rev(QMI.name()) :: {:ok, map()} | {:error, any()}

Get the hardware information

get_manufacturer(qmi)

@spec get_manufacturer(QMI.name()) :: {:ok, binary()} | {:error, any()}

Get the device manufacturer information

get_model(qmi)

@spec get_model(QMI.name()) :: {:ok, binary()} | {:error, any()}

Get the device model information

get_operating_mode(qmi)

@spec get_operating_mode(QMI.name()) ::
  {:ok, QMI.Codec.DeviceManagement.operating_mode_response()} | {:error, any()}

Get the operating mode

get_serial_numbers(qmi)

@spec get_serial_numbers(QMI.name()) ::
  {:ok, QMI.Codec.DeviceManagement.serial_numbers()} | {:error, any()}

Get the device serial numbers

set_operating_mode(qmi, mode)

@spec set_operating_mode(QMI.name(), QMI.Codec.DeviceManagement.operating_mode()) ::
  :ok | {:error, any()}

Set the operating mode