From 356464d52ad8c771e9f6cfbb070a1d150540573d Mon Sep 17 00:00:00 2001 From: zhouyanxu Date: Mon, 16 May 2022 11:21:14 +0800 Subject: [PATCH] update lightBrightness value Signed-off-by: zhouyanxu --- light/v1_0/ILightInterface.idl | 3 ++- light/v1_0/LightTypes.idl | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/light/v1_0/ILightInterface.idl b/light/v1_0/ILightInterface.idl index fb2f0eb9..23b6602c 100644 --- a/light/v1_0/ILightInterface.idl +++ b/light/v1_0/ILightInterface.idl @@ -61,7 +61,8 @@ interface ILightInterface { * * @param lightId Indicates the light id. For details, see {@link HdfLightId}. * - * @param effect Indicates the pointer to the lighting effect. For details, see {@link HdfLightEffect}. + * @param effect Indicates the pointer to the lighting effect, if the lightbrightness field is 0, + * light brightness according to the defaultBrightness configured by HCS. For details, see {@link LightEffect}. * * @return Returns 0 if the operation is successful. * @return Returns -1 if the light id is not supported. diff --git a/light/v1_0/LightTypes.idl b/light/v1_0/LightTypes.idl index 29b4db5f..e3aebc6f 100644 --- a/light/v1_0/LightTypes.idl +++ b/light/v1_0/LightTypes.idl @@ -91,7 +91,8 @@ struct HdfLightFlashEffect { * @since 3.1 */ struct HdfLightEffect { - int lightBrightness; /** Brightness value. The value 1 of the most significant bit indicates a color. - Bits 16–31 for red, bits 8–15 for green, and bits 0–7 for blue. */ + int lightBrightness; /** Brightness value. Bits 24–31 for extended bit, Bits 16–23 for red, + bits 8–15 for green, and bits 0–7 for blue. if the byte segment is not equal to 0, + indicates turn on light of the corresponding color. */ struct HdfLightFlashEffect flashEffect; /** Blinking mode. For details, see {@link LightFlashEffect}. */ }; -- Gitee