How to detect incomplete IN packets

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaBo_288066
Level 2
Level 2

Hi all,
is it possible to know if an incomptete IN bulk packet is waiting for transmission in case of slave FIFO and AUTOIN=1? And, if detected, is it possible to kwon the size of this incomplete data?

   

I tried to monitor EPxCS register waiting for the stable condition NPAK=1 but it always goes to zero also if an incomplete packet exists.

   

The manual says: "IN Endpoints: NPAK indicates the number of IN packets committed to USB (i.e., loaded
and armed for USB transfer), and thus unavailable to the firmware.". So what does it mean NPAK=0, that the incomplete packet is available?

   

Thanks!

   
0 Likes
0 Replies