Unfortunately, the HID class does not have the same function. I added one, but it does not do what I needed. Instead, I have put the USB peripheral into standby and controlled the pull-ups manually. Removing the D+ pullup, using the OTGCTL register, causes the device to detach through a software means. It can be recovered by just putting the pull-up control back and re-enabling the peripheral (plus plugging in the cable).