sys_bitarray_set_region

Function sys_bitarray_set_region 

Source
pub unsafe extern "C" fn sys_bitarray_set_region(
    bitarray: *mut sys_bitarray,
    num_bits: usize,
    offset: usize,
) -> i32
Expand description

Set all bits in a region.

This sets the number of bits (@p num_bits) in region starting from @p offset.

@param bitarray Bitarray struct @param num_bits Number of bits to test @param offset Starting bit position to test

@retval 0 Operation successful @retval -EINVAL Invalid argument (e.g. bit to set exceeds the number of bits in bit array, etc.)