class Fan

Defined at line 402 of file fidling/gen/sdk/fidl/fuchsia.hardware.fan/fuchsia.hardware.fan/hlcpp/fuchsia/hardware/fan/cpp/fidl.h

Fan: get and set `fan_level`

`fan_level`: 0 should be the lowest fan state, generally OFF.

Fan speed increases with `fan_level` and should

match the `fuchsia.thermal.ClientStateWatcher`

states for fans, where the states are defined

in thermal_config.json for each product.

Thus, the valid values of `fan_level` is

determined per product according to the

corresponding config json file.

Public Methods

void ~Fan ()
void GetFanLevel (GetFanLevelCallback callback)

Get the current fan level.

- response `status`

ZX_ERR_INTERNAL if `fan_level` is not available.

This generally means that `fan_level` has not

been initialized yet or something has gone

terribly wrong.

- response `fan_level` a uint32 field indicating the

current fan level. See fan level description above.

void SetFanLevel (uint32_t fan_level, SetFanLevelCallback callback)

Set the fan level.

+ request `fan_level` a uint32 field indicating the

requested fan level. See fan level description above.

- response `status`

ZX_ERR_OUT_OF_RANGE if the requested fan_level is not

valid.