Function riot_sys::bindgen::saul_reg_add

source ·
pub unsafe extern "C" fn saul_reg_add(dev: *mut saul_reg_t) -> c_int
Expand description

@brief Register a device with the SAUL registry

@note Make sure the registry entry the @p dev pointer is pointing to resides in some persistent memory location and not on some position on the stack where it will be overwritten…

@param[in] dev pointer to a pre-populated registry entry

@return 0 on success @return -ENODEV on invalid entry given