pub fn endpoint_bank_set_buffer(
        &self,
        endpoint: EndpointIndex,
        bank: BankIndex,
        buf: &[VolatileCell<u8>],
    ) {
        let e: usize = From::from(endpoint);
        let b: usize = From::from(bank);
        let p = buf.as_ptr() as *mut u8;

        debug!("Set Endpoint{}/Bank{} addr={:8?}", e, b, p);
        self.descriptors[e][b].set_addr(p);
        self.descriptors[e][b].set_packet_size(PacketSize::default());
    }
/// Provide a buffer for transfers in and out of the given endpoint
Provide a buffer for transfers in and out of the given endpoint
Provide a buffer for transfers in and out of the given endpoint
pub fn endpoint_bank_set_buffer(
        &self,
        endpoint: EndpointIndex,
        bank: BankIndex,
        buf: &[VolatileCell<u8>],
    ) {
        let e: usize = From::from(endpoint);
        let b: usize = From::from(bank);
        let p = buf.as_ptr() as *mut u8;
        debug!("Set Endpoint{}/Bank{} addr={:8?}", e, b, p);
        self.descriptors[e][b].set_addr(p);
        self.descriptors[e][b].set_packet_size(PacketSize::default());
    }
pub fn endpoint_bank_set_buffer ( & self , endpoint : EndpointIndex , bank : BankIndex , buf : & [ VolatileCell < u8 > ] , ) { let e : usize = From :: from ( endpoint ) ; let b : usize = From :: from ( bank ) ; let p = buf . as_ptr ( ) as * mut u8 ; debug ! ( " " e b p ) ; self . descriptors [ e ] [ b ] . set_addr ( p ) ; self . descriptors [ e ] [ b ] . set_packet_size ( PacketSize :: default ( ) ) ; }
Provide a buffer for transfers in and out of the given endpoint
Provide a buffer for transfers in and out of the given endpoint
&self
endpoint
EndpointIndex
bank
BankIndex
buf
&[VolatileCell<u8>]
&self
endpoint
EndpointIndex
bank
BankIndex
buf
&[VolatileCell<u8>]