template <>
class WireWeakAsyncBufferClientImpl
Defined at line 4479 of file fidling/gen/sdk/fidl/fuchsia.hardware.light/fuchsia.hardware.light/cpp/fidl/fuchsia.hardware.light/cpp/wire_messaging.h
Public Methods
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetNumLights> GetNumLights ()
Returns the total number of physical lights.
This will typically be 1 for a simple LED light, but may be greater than one for an array of
lights or a more complicated lighting device.
The multiple lights are addressed using "index" parameter in the calls below.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetNumLightGroups> GetNumLightGroups ()
Returns the total number of light groups (does not count single lights).
The light groups are addressed using "group_id" parameter in the calls below.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetInfo> GetInfo (uint32_t index)
Returns info for the single light.
index: Index of the light defined by board. Must be less than value returned by GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetCurrentSimpleValue> GetCurrentSimpleValue (uint32_t index)
Returns the current value. If the light is ON, the value is True. If the light is OFF,
the value is False.
If the capability 'SIMPLE' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetSimpleValue> SetSimpleValue (uint32_t index, bool value)
Sets the current value. Value should be set to 'TRUE' to turn on the light. Value should be
set to 'FALSE' to turn off the light.
If the capability 'SIMPLE' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetCurrentBrightnessValue> GetCurrentBrightnessValue (uint32_t index)
Returns the current brightness value (0.0 - 1.0) of the light indicated by index, where 0.0
is minimum brightness and 1.0 is maximum.
If the capability 'BRIGHTNESS' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetBrightnessValue> SetBrightnessValue (uint32_t index, double value)
Sets the current brightness value (0.0 - 1.0), where 0.0 is minimum brightness and 1.0 is
maximum.
If the capability 'BRIGHTNESS' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetCurrentRgbValue> GetCurrentRgbValue (uint32_t index)
Returns the current RGB value for the single light.
If the capability 'RGB' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetRgbValue> SetRgbValue (uint32_t index, const ::fuchsia_hardware_light::wire::Rgb & value)
Sets the current RGB value.
If the capability 'RGB' is not supported by this light, returns NOT_SUPPORTED.
Use GetInfo to check if light supports this operation.
index: a number between 0 inclusive and the count received from GetNumLights.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetGroupInfo> GetGroupInfo (uint32_t group_id)
Returns group info for the light group.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetGroupCurrentSimpleValue> GetGroupCurrentSimpleValue (uint32_t group_id)
Returns an array of the current values.If the light is ON, the value is True. If the light
is OFF, the value is False.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'SIMPLE' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetGroupSimpleValue> SetGroupSimpleValue (uint32_t group_id, ::fidl::VectorView<bool> values)
Sets the current values through the values array. Value should be set to 'TRUE' to turn on
the light. Value should be set to 'FALSE' to turn off the light.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'SIMPLE' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetGroupCurrentBrightnessValue> GetGroupCurrentBrightnessValue (uint32_t group_id)
Returns an array of the current brightness values (0.0 - 1.0) for the light group, where 0.0
is minimum brightness and 1.0 is maximum.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'BRIGHTNESS' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetGroupBrightnessValue> SetGroupBrightnessValue (uint32_t group_id, ::fidl::VectorView<double> values)
Sets the current brightness values (0.0 - 1.0) for the light group through the values array,
where 0.0 is minimum brightness and 1.0 is maximum.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'BRIGHTNESS' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::GetGroupCurrentRgbValue> GetGroupCurrentRgbValue (uint32_t group_id)
Returns an array of the current RGB values for the light group.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'RGB' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.
::fidl::internal::WireBufferThenable< ::fuchsia_hardware_light::Light::SetGroupRgbValue> SetGroupRgbValue (uint32_t group_id, ::fidl::VectorView< ::fuchsia_hardware_light::wire::Rgb> values)
Sets the current RGB value for the light group.
If group_id is invalid, INVALID_INDEX will be returned.
If the capability 'RGB' is not supported by this group, returns NOT_SUPPORTED.
Use GetGroupInfo to check if group supports this operation.
group_id: a number between 0 inclusive and the count received from GetNumLightGroups.
Caller provides the backing storage for FIDL message.