Function nrf_softdevice_s122::sd_power_usbremoved_enable
source · pub unsafe fn sd_power_usbremoved_enable(usbremoved_enable: u8) -> u32
Expand description
@brief Enables or disables the power USB-removed event.
Enabling this will give a SoftDevice event (NRF_EVT_POWER_USB_REMOVED) when a voltage supply is removed from VBUS. The event can be retrieved with sd_evt_get();
@param[in] usbremoved_enable True if the power ready event should be enabled, false if it should be disabled.
@note Calling this function on a chip without USBD peripheral will result in undefined behaviour.
@retval ::NRF_SUCCESS