Need docs for create hardware tool like usb and other thing

Needed any resource for creating software for hardware like usb and earpod