Skip to content

Commit

Permalink
make input context could clean all bits expect 0 of add flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dbydd committed Aug 26, 2024
1 parent fced957 commit 393bf32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ pub trait InputControlHandler: AsRef<[u32]> + AsMut<[u32]> {
self.as_mut()[1] = 1u32;
}

/// clear all drop flag
fn clear_all_drop_flag(&mut self) {
self.as_mut()[0] = 0u32;
}

rw_field_cx!([7](0..=7), configuration_value, "Configuration Value", u8);
rw_field_cx!([7](8..=15), interface_number, "Interface Number", u8);
rw_field_cx!([7](16..=23), alternate_setting, "Alternate Setting", u8);
Expand Down

0 comments on commit 393bf32

Please sign in to comment.