pub unsafe fn sd_power_usbdetected_enable(usbdetected_enable: u8) -> u32
Expand description

@brief Enables or disables the power USB-detected event.

Enabling this will give a SoftDevice event (NRF_EVT_POWER_USB_DETECTED) when a voltage supply is detected on VBUS. The event can be retrieved with sd_evt_get();

@param[in] usbdetected_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