riot_sys

Function mtd_power

Source
pub unsafe extern "C" fn mtd_power(
    mtd: *mut mtd_dev_t,
    power: mtd_power_state,
) -> c_int
Expand description

@brief Set power mode on a MTD device

@param mtd the device to access @param[in] power the power mode to set

@retval 0 if power mode successfully set @retval <0 if an error occurred @retval -ENODEV if @p mtd is not a valid device @retval -ENOTSUP if operation or @p power state is not supported on @p mtd @retval -EIO if I/O error occurred