fn disable_rx_interrupts(&self) {
        self.register_block()
            .int_ena()
            .modify(|_, w| w.serial_out_recv_pkt().clear_bit());

        self.register_block()
            .int_clr()
            .write(|w| w.serial_out_recv_pkt().clear_bit_by_one());
    }
Disable all receive interrupts for the peripheral
esp-hal/src/usb_serial_jtag.rs