TuyaOS
成员变量
__attribute__结构体 参考

成员变量

USHORT_T addr
 
UCHAR_T appkey [16]
 
USHORT_T appkey_index
 
UCHAR_T count: 3
 
UCHAR_T delay
 
SHORT_T delta_uv
 
USHORT_T element_addr
 
USHORT_T hue
 
UCHAR_T keyindex [3]
 
USHORT_T lightness
 
UINT_T model_id
 
UCHAR_T netkey [16]
 
USHORT_T netkey_index
 
UCHAR_T * p_data
 
UCHAR_T page
 
USHORT_T present
 
SHORT_T present_delta_uv
 
USHORT_T present_lightness
 
USHORT_T present_temp
 
UCHAR_T remain_t
 
USHORT_T sat
 
UCHAR_T status
 
UCHAR_T steps: 5
 
USHORT_T target
 
SHORT_T target_delta_uv
 
USHORT_T target_lightness
 
USHORT_T target_temp
 
USHORT_T temp
 
UCHAR_T tid
 
UCHAR_T transit_t
 

结构体成员变量说明

◆ delay

UCHAR_T __attribute__::delay

If the transit_t field is present, the Delay field shall also be present; otherwise these fields shall not be present.

◆ delta_uv

SHORT_T __attribute__::delta_uv

The target value of the Light CTL Delta UV state

The target value of the Light CTL Delta UV state.

◆ hue

USHORT_T __attribute__::hue

The present value of the Light HSL Hue state

The target value of the Light HSL Hue state

◆ lightness

USHORT_T __attribute__::lightness

The target value of the Light Lightness Actual state

The target value of the Light CTL Lightness state

The present value of the Light HSL Lightness state

The target value of the Light HSL Lightness state

◆ model_id

UINT_T __attribute__::model_id

2 bytes or 4 bytes

◆ present

USHORT_T __attribute__::present

The present value of the Light Lightness Actual state.

◆ present_delta_uv

SHORT_T __attribute__::present_delta_uv

The present value of the Light CTL Delta UV state

◆ present_lightness

USHORT_T __attribute__::present_lightness

The present value of the Light CTL Lightness state

◆ present_temp

USHORT_T __attribute__::present_temp

The present value of the Light CTL Temperature state

◆ remain_t

UCHAR_T __attribute__::remain_t

If the target field is present, the Remaining Time field shall also be present; otherwise these fields shall not be present

If the target_lightness field is present, this field shall also be present; otherwise this field shall not be present

If the target_temp field is present, this field shall also be present; otherwise this field shall not be present

Generic Default Transition Time(Optional)

◆ sat

USHORT_T __attribute__::sat

The present value of the Light HSL Saturation state

The target value of the Light HSL Saturation state

◆ target

USHORT_T __attribute__::target

The target value of the Light Lightness Actual state. (Optional)

◆ target_delta_uv

SHORT_T __attribute__::target_delta_uv

If the target_temp field is present, this field shall also be present; otherwise this field shall not be present

◆ target_lightness

USHORT_T __attribute__::target_lightness

The target value of the Light CTL Lightness state (Optional)

◆ target_temp

USHORT_T __attribute__::target_temp

If the target_lightness field is present, this field shall also be present; otherwise this field shall not be present

The target value of the Light CTL Temperature state (Optional)

◆ temp

USHORT_T __attribute__::temp

The target value of the Light CTL Temperature state

◆ tid

UCHAR_T __attribute__::tid

Transaction Identifier

◆ transit_t

UCHAR_T __attribute__::transit_t

Generic Default Transition Time(optional)

Generic Default Transition Time(Optional)


该结构体的文档由以下文件生成: