Skip to main content

usb_transfer

Function usb_transfer 

Source
unsafe fn usb_transfer(
    ch: usize,
    ep: u8,
    dev_addr: u8,
    ep_type: u8,
    pid: u32,
    dir_in: bool,
    buffer_phys: u32,
    len: u32,
    mps: u16,
    timeout_val: u32,
) -> Result<u32, ()>
Expand description

ホストチャネルを使った1つのUSB転送(トランザクション)の発行 ch: チャネル番号, ep: エンドポイント, dev_addr: デバイスアドレス, pid: PID(0=DATA0, 2=DATA1, 3=SETUP), dir_in: 転送方向(true=IN, false=OUT), len: 転送サイズ