aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/usb.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/usb.h')
-rw-r--r--os/hal/include/usb.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/os/hal/include/usb.h b/os/hal/include/usb.h
index d2a154949..751128c7c 100644
--- a/os/hal/include/usb.h
+++ b/os/hal/include/usb.h
@@ -322,8 +322,20 @@ typedef const USBDescriptor * (*usbgetdescriptor_t)(USBDriver *usbp,
* @{
*/
/**
+ * @brief Returns the sriver state.
+ *
+ * @param[in] usbp pointer to the @p USBDriver object
+ * @return The driver state.
+ *
+ * @iclass
+ */
+#define usbGetDriverStateI(usbp) ((usbp)->state)
+
+/**
* @brief Connects the USB device.
*
+ * @param[in] usbp pointer to the @p USBDriver object
+ *
* @api
*/
#define usbConnectBus(usbp) usb_lld_connect_bus(usbp)
@@ -331,6 +343,8 @@ typedef const USBDescriptor * (*usbgetdescriptor_t)(USBDriver *usbp,
/**
* @brief Disconnect the USB device.
*
+ * @param[in] usbp pointer to the @p USBDriver object
+ *
* @api
*/
#define usbDisconnectBus(usbp) usb_lld_disconnect_bus(usbp)