|
TuyaOS
|
Common process - attribute read/write 更多...

函数 | |
| OPERATE_RET | tkl_zg_read_attribute (TKL_CLUSTER_TRIPLET_T *triplet, UINT16_T attr_id, VOID_T *data, UINT8_T len) |
| read attribute 更多... | |
| OPERATE_RET | tkl_zg_write_attribute (TKL_CLUSTER_TRIPLET_T *triplet, UINT16_T attr_id, VOID_T *data, ZG_ATTR_TYPE_E type) |
| write attribute 更多... | |
Common process - attribute read/write
| OPERATE_RET tkl_zg_read_attribute | ( | TKL_CLUSTER_TRIPLET_T * | triplet, |
| UINT16_T | attr_id, | ||
| VOID_T * | data, | ||
| UINT8_T | len | ||
| ) |
read attribute
| [in] | triplet | attribute triplet |
| [in] | attr_id | attribute id |
| [in] | data | pointer to the data buff |
| [in] | len | length of read data |
| OPERATE_RET tkl_zg_write_attribute | ( | TKL_CLUSTER_TRIPLET_T * | triplet, |
| UINT16_T | attr_id, | ||
| VOID_T * | data, | ||
| ZG_ATTR_TYPE_E | type | ||
| ) |
write attribute
| [in] | triplet | attribute triplet |
| [in] | attr_id | attribute id |
| [in] | data | pointer to the data buff |
| [in] | type | attribute type |