Advertisement
Guest User

Untitled

a guest
Jan 15th, 2012
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. // Clear Hub Feature
  2. inline uint8_t USBHub::ClearHubFeature( uint8_t fid )
  3. {
  4.     return( pUsb->ctrlReq( bAddress, 0, bmREQ_CLEAR_HUB_FEATURE, USB_REQUEST_CLEAR_FEATURE, fid, 0, 0, 0, 0, NULL, NULL ));
  5. }
  6. // Clear Port Feature
  7. inline uint8_t USBHub::ClearPortFeature( uint8_t fid, uint8_t port, uint8_t sel )
  8. {
  9.     return( pUsb->ctrlReq( bAddress, 0, bmREQ_CLEAR_PORT_FEATURE, USB_REQUEST_CLEAR_FEATURE, fid, 0, ((0x0000|port)|(sel<<8)), 0, 0, NULL, NULL ));
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement