-
Notifications
You must be signed in to change notification settings - Fork 7.5k
USB device transfer #5983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB device transfer #5983
Changes from all commits
f33b8d6
1058e49
ef343a5
e7a66f7
60c2f40
10c2841
66a6cc3
9afc632
6c0c0ea
16b67d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ enum usb_dc_status_code { | |
USB_DC_DISCONNECTED, /* USB connection lost */ | ||
USB_DC_SUSPEND, /* USB connection suspended by the HOST */ | ||
USB_DC_RESUME, /* USB connection resumed by the HOST */ | ||
USB_DC_INTERFACE, /* USB interface selected */ | ||
USB_DC_UNKNOWN /* Initial USB connection status */ | ||
}; | ||
|
||
|
@@ -326,4 +327,14 @@ int usb_dc_ep_read_wait(u8_t ep, u8_t *data, u32_t max_data_len, | |
*/ | ||
int usb_dc_ep_read_continue(u8_t ep); | ||
|
||
/** | ||
* @brief Get endpoint max packet size | ||
* | ||
* @param[in] ep Endpoint address corresponding to the one | ||
* listed in the device configuration table | ||
* | ||
* @return enpoint max packet size (mps) | ||
*/ | ||
int usb_dc_ep_mps(u8_t ep); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is misleading since wMaxPacketSize is not always equal to buffer or fifo size of a endpoint. Can we rename it to max buffer size, usb_dc_ep_mbs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really need the Max Packet Size here, in order to know how the transfer will be split, what is the size of a short packet, is Zero lenght Packet requested, etc... |
||
|
||
#endif /* __USB_DC_H__ */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@finikorg maybe relevant to #5678