Function nrf_softdevice_s113::sd_power_usbpwrrdy_enable
source · pub unsafe fn sd_power_usbpwrrdy_enable(usbpwrrdy_enable: u8) -> u32
Expand description
@brief Enables or disables the USB power ready event.
Enabling this will give a SoftDevice event (NRF_EVT_POWER_USB_POWER_READY) when a USB 3.3 V supply is ready. The event can be retrieved with sd_evt_get();
@param[in] usbpwrrdy_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