bt_mesh_atomic_test_and_clear_bit() function
Atomically test and clear a bit. Atomically clear bit number @a bit of @a target and return its old value. The target may be a single atomic variable or an array of them.
Arguments
target
Address of atomic variable or array.
bit
Bit number (starting from 0).
Return value
1 if the bit was set, 0 if it wasn't.
bt_mesh_atomic_test_and_clear_bit() is called by 16 functions and calls 1 function:
![]()
bt_mesh_atomic_test_and_clear_bit()
bt_mesh_atomic_test_and_clear_bit():
![]()
bt_mesh_atomic_test_and_clear_bit()