summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-03-29 16:23:00 +0700
committerhathach <[email protected]>2019-03-29 16:23:00 +0700
commit1c2beba85c223bcf401f877b0c29025490fcdaa4 (patch)
treeb79e6cb6cfab2139a3894d46e4731ec81ce78318 /src/device/dcd.h
parent0bdd4bd55002c4563154214a4d57581433cae668 (diff)
working on suspend and resume
change dcd_init signature
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index 9abebc2af..f47c3714a 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -80,7 +80,9 @@ TU_VERIFY_STATIC(sizeof(dcd_event_t) <= 12, "size is not correct");
/*------------------------------------------------------------------*/
/* Device API
*------------------------------------------------------------------*/
-bool dcd_init (uint8_t rhport);
+
+// Initialize controller to device mode
+void dcd_init (uint8_t rhport);
// Enable device interrupt
void dcd_int_enable (uint8_t rhport);
@@ -91,9 +93,12 @@ void dcd_int_disable(uint8_t rhport);
// Receive Set Address request, mcu port must also include status IN response
void dcd_set_address(uint8_t rhport, uint8_t dev_addr);
-// Receive Set Config request
+// Receive Set Configure request
void dcd_set_config (uint8_t rhport, uint8_t config_num);
+// Wake up host
+void dcd_remote_wakeup(uint8_t rhport);
+
/*------------------------------------------------------------------*/
/* Endpoint API
* - open : Configure endpoint's registers