MCPcopy Create free account
hub / github.com/SharpCoder/teensycore / usb_transmit

Function usb_transmit

src/phys/usb.rs:408–410  ·  view source on GitHub ↗

This method will enqueue the transfer descriptor into the endpoint and prime it for transmitting new data.

(endpoint: usize, transfer: &mut UsbEndpointTransferDescriptor)

Source from the content-addressed store, hash-verified

406/// This method will enqueue the transfer descriptor into the endpoint
407/// and prime it for transmitting new data.
408pub fn usb_transmit(endpoint: usize, transfer: &mut UsbEndpointTransferDescriptor) {
409 schedule_transfer(endpoint as u32, true, transfer);
410}
411
412fn schedule_transfer(ep: u32, tx: bool, transfer: &mut UsbEndpointTransferDescriptor) {
413 let qh = usb_get_queuehead(ep as usize, tx);

Callers 1

usb_serial_flushFunction · 0.85

Calls 1

schedule_transferFunction · 0.85

Tested by

no test coverage detected