Documentation

Documentation

Includes

tuya_os_adapter.h

#include "tuya_os_adapter.h"
#include "tuya_os_adapter.h"

Macros

Marco _TUYA_HAL_MUTEX_H

#define _TUYA_HAL_MUTEX_H

      

Functions

Func tuya_hal_mutex_create_init

OPERATE_RET tuya_hal_mutex_create_init(MUTEX_HANDLE *pMutexHandle);
/**
* @brief Create mutex
*
* @param[out] pMutexHandle: mutex handle
*
* @note This API is used to create mutex.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/

Func tuya_hal_mutex_lock

OPERATE_RET tuya_hal_mutex_lock(const MUTEX_HANDLE mutexHandle);
/**
* @brief Lock mutex
*
* @param[in] mutexHandle: mutex handle
*
* @note This API is used to lock mutex.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/

Func tuya_hal_mutex_unlock

OPERATE_RET tuya_hal_mutex_unlock(const MUTEX_HANDLE mutexHandle);
/**
* @brief Unlock mutex
*
* @param[in] mutexHandle: mutex handle
*
* @note This API is used to unlock mutex.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/

Func tuya_hal_mutex_release

OPERATE_RET tuya_hal_mutex_release(const MUTEX_HANDLE mutexHandle);
/**
* @brief Release mutex
*
* @param[in] mutexHandle: mutex handle
*
* @note This API is used to release mutex.
*
* @return OPRT_OK on success. Others on error, please refer to tuya_error_code.h
*/

Func tuya_os_mutex_intf_init

VOID_T tuya_os_mutex_intf_init(VOID_T);
/**
 * @brief Mutex interface initialization
 *
 * @param VOID
 *
 * @note This API is used for initialization of mutex interface.
 *
 * @return VOID
 */

Vars

Consts

Types

Typedefs