aboutsummaryrefslogtreecommitdiffstats
path: root/usbh/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'usbh/src/lib.rs')
-rwxr-xr-xusbh/src/lib.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/usbh/src/lib.rs b/usbh/src/lib.rs
index b0a103a..c4e2426 100755
--- a/usbh/src/lib.rs
+++ b/usbh/src/lib.rs
@@ -359,11 +359,11 @@ where
fn configure_dev(&mut self) -> Result<(), PipeErr> {
let mut pipe = self.pipe_table.pipe_for(self.usb.host_mut(), 0, 0);
- let mut vol_descr = ::vcell::VolatileCell::<USBDeviceDescriptor>::new(Default::default());
+ let mut vol_descr = ::vcell::VolatileCell::<DeviceDescriptor>::new(Default::default());
pipe.control_req(
- BMRequestType::get_descr(),
- USBRequest::GetDescriptor,
- WValue::from((0, USBDescriptor::Device as u8)),
+ RequestType::get_descr(),
+ RequestCode::GetDescriptor,
+ WValue::from((0, DescriptorType::Device as u8)),
0,
Some(DataBuf::from(&mut vol_descr)),
self.millis,
@@ -379,8 +379,8 @@ where
device.max_packet_size = desc.b_max_packet_size;
debug!("Setting address to {}.", device.addr);
pipe.control_req(
- BMRequestType::set(),
- USBRequest::SetAddress,
+ RequestType::set(),
+ RequestCode::SetAddress,
WValue::from((device.addr, 0)),
0,
None,