Writing USB host mode driver