[−][src]Function mynewt::kernel::os::os_dev_suspend
pub unsafe extern "C" fn os_dev_suspend(
dev: *mut os_dev,
suspend_t: os_time_t,
force: u8
) -> c_int
Suspend the operation of the device.
dev
: The device to suspend.suspend_t
: When the device should be suspended.force
: Whether not the suspend operation can be overridden by the device handler.
Return: 0 on success, non-zero error code on failure.