The description of RNDIS mode says that if the DMA pkt is the multiple times of USB MaxPtkSizt, the USB transfer ends when DMA controller receives a zero length pkt. Can anybody explain this in more detail?
I guess if I want to send a 512 byte out (USB MaxPktSize = 64), and I need to prepare 2 HPDs, one HPD is linked with 512 byte data buffer ,and one HPD (not HBD) is linked with 0 byte data buffer. Is this guess correct?
Also in the GENERIC RNDIS mode, the max DMA pkt length must be less than the value of Generiv RNDIS EP Size register. Is this correct?
thanks,
Sheng