Skip to content

Commit

Permalink
Add enum reference
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Aug 27, 2023
1 parent 5653003 commit 87ffdce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub use rusb::Direction;
pub const EP0_MAX_PACKET_SIZE: u16 = 64;

/// A list of defined USB standard requests
/// from USB 2.0 standard Table 9.4. Standard Request Codes
#[derive(Copy, Clone, Debug, FromPrimitive)]
pub enum StandardRequest {
GetStatus = 0,
Expand All @@ -73,6 +74,7 @@ pub enum StandardRequest {
}

/// A list of defined USB descriptor types
/// from USB 2.0 standard Table 9.5. Descriptor Types
#[derive(Copy, Clone, Debug, FromPrimitive)]
pub enum DescriptorType {
Device = 1,
Expand Down

0 comments on commit 87ffdce

Please sign in to comment.