Documentation

Documentation

Includes

tuya_cloud_types.h

#include "tuya_cloud_types.h"
#include "tuya_cloud_types.h"

Macros

Marco _TY_WORK_QUEUE_H

#define _TY_WORK_QUEUE_H

      

Functions

Func ty_work_queue_init

OPERATE_RET ty_work_queue_init(VOID);
/**
 * @brief init ty work queue
 *
 * @param[in] NONE
 *
 * @note This API is used for init work queue
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */

Func ty_work_queue_add

OPERATE_RET ty_work_queue_add(IN CONST TY_WK_CB cb, IN CONST VOID *data);
/**
 * @brief add work to work queue
 *
 * @param[in] cb, call back of work
 * @param[in] data, parameter of call back
 *
 * @note This API is used for add work to work queue
 *
 * @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
 */

Func ty_work_queue_depth

UINT_T ty_work_queue_depth(VOID);
/**
 * @brief get current work number in work queue.
 *
 * @param[in] NONE
 *
 * @note This API is used for get the current work number in work queue.
 *
 * @return current work number in the work queue
 */

Vars

Consts

Types

Typedefs

Typedef TY_WK_CB

typedef VOID (*TY_WK_CB)(VOID *data);
/**
 * @brief call back prototype of work
 */