System functions¶
System function are used in conjunction with thread safety. Please check Thread safety section for more information
-
group
OW_SYS
System functions when used with operating system.
Functions
-
uint8_t
ow_sys_mutex_create
(OW_CFG_OS_MUTEX_HANDLE *mutex, void *arg)¶ Create a new mutex and assign value to handle.
- Return
1
on success,0
otherwise- Parameters
[out] mutex
: Output variable to save mutex handle[in] arg
: User argument passed on ow_init function
-
uint8_t
ow_sys_mutex_delete
(OW_CFG_OS_MUTEX_HANDLE *mutex, void *arg)¶ Delete existing mutex and invalidate mutex variable.
- Return
1
on success,0
otherwise- Parameters
[in] mutex
: Mutex handle to remove and invalidate[in] arg
: User argument passed on ow_init function
-
uint8_t