Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Clear Hub Feature
- inline uint8_t USBHub::ClearHubFeature( uint8_t fid )
- {
- return( pUsb->ctrlReq( bAddress, 0, bmREQ_CLEAR_HUB_FEATURE, USB_REQUEST_CLEAR_FEATURE, fid, 0, 0, 0, 0, NULL, NULL ));
- }
- // Clear Port Feature
- inline uint8_t USBHub::ClearPortFeature( uint8_t fid, uint8_t port, uint8_t sel )
- {
- return( pUsb->ctrlReq( bAddress, 0, bmREQ_CLEAR_PORT_FEATURE, USB_REQUEST_CLEAR_FEATURE, fid, 0, ((0x0000|port)|(sel<<8)), 0, 0, NULL, NULL ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement