System functions¶
System function are used in conjunction with thread safety. These are required when operating system is used and multiple threads want to access to the same OneWire instance.
Tip
Check Thread safety and Porting guide for instructions on how to port.
Below is a list of function prototypes and its implementation details.
-
group
LWOW_SYS
System functions when used with operating system.
Functions
-
uint8_t
lwow_sys_mutex_create
(LWOW_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 lwow_init function
-
uint8_t
lwow_sys_mutex_delete
(LWOW_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 lwow_init function
-
uint8_t