User:Seanlin/USB Manager API: Difference between revisions

Jump to navigation Jump to search
Reorganize USB port interface
(→‎Specific USB Port Interface: Adding "Storage" subtitle)
(Reorganize USB port interface)
Line 34: Line 34:
Whenever the hardware detects connection/disconnection, a USBConnectEvent or USBDisconnectEvent against this USB port should be fired.
Whenever the hardware detects connection/disconnection, a USBConnectEvent or USBDisconnectEvent against this USB port should be fired.


=== Basic USB Port Interface ===
=== USB Port Interface ===
 
==== Basic ====
   enum USBPortType { "storage" };
   enum USBPortType { "storage" };


Line 59: Line 59:
Whenever the hardware detects connection/disconnection, a USBConnectEvent or USBDisconnectEvent against this USB port should be fired.
Whenever the hardware detects connection/disconnection, a USBConnectEvent or USBDisconnectEvent against this USB port should be fired.


=== Specific USB Port Interface ===
==== Storage ====
==== Storage ====
''In reality, a specific USB port may have its specific attributes and methods. And our goal is to collect the "common" ones as many as possible. However, with limited information, we will not focus on implementing hardware dependent members in this draft.''
''In reality, a specific USB port may have its specific attributes and methods. And our goal is to collect the "common" ones as many as possible. However, with limited information, we will not focus on implementing hardware dependent members in this draft.''
Confirmed users
16

edits

Navigation menu