39.1.3.22 usb_d_ep_get_status
Retrieve the endpoint status.
int32_t usb_d_ep_get_status(
const uint8_t ep,
struct usb_d_ep_status * stat
)
Parameters
- ep
-
Type: const uint8_t
The endpoint address.
- stat
-
Type: struct usb_d_ep_status Struct *
Pointer to the buffer to fill the status description.
Returns
Type: int32_t
Endpoint status.
- 1
-
Busy.
- 0
-
Idle.
- <0
-
Error code.