[riot-notifications] [RIOT-OS/RIOT] usbus: Add automated test (#12267)

Koen Zandberg notifications at github.com
Wed Sep 18 14:36:54 CEST 2019


bergzand commented on this pull request.



> @@ -123,6 +128,18 @@ void usbus_control_slicer_ready(usbus_t *usbus);
  */
 int usbus_control_slicer_nextslice(usbus_t *usbus);
 
+/**
+ * @brief Retrieve the data from the OUT pipe of the control endpoint
+ *
+ * @pre usbus->state == USBUS_SETUPRQ_OUTDATA
+ *
+ * @param[in]   usbus       USBUS context
+ * @param[out]  len         Length of the data part
+ *
+ * @return                  pointer to the data buffer
+ */
+uint8_t *usbus_control_get_out_data(usbus_t *usbus, size_t *len);

Just to be honest, this function is not strictly necessary for this PR, it is not tested in the automated test, and can be split off to a separate PR if desired.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12267#pullrequestreview-289883847
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190918/6acc3958/attachment.htm>


More information about the notifications mailing list