usb: Add API for getting status of remote wakeup

This change adds a posibility to check the status of
remote wakeup feature.

Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
Emil Obalski 2021-10-27 13:33:53 +02:00 committed by Carles Cufí
commit 75c0f52cca
3 changed files with 15 additions and 1 deletions

View file

@ -433,6 +433,13 @@ bool usb_transfer_is_busy(uint8_t ep);
*/
int usb_wakeup_request(void);
/**
* @brief Get status of the USB remote wakeup feature
*
* @return true if remote wakeup has been enabled by the host, false otherwise.
*/
bool usb_get_remote_wakeup_status(void);
/**
* @}
*/