
EZ-USB FX2 Technical Reference Manual
Page 10-62 EZ-USB FX2 Technical Reference Manual v2.1
Figure 10-56. Burst FIFO-Read Transaction Example, Writing INPKTEND w/SKIP=0 to Commit
void TD_Poll( void )
{
… … … … …
if( ibn_event_flag )
{ // host is asking for EP8 data
Peripheral_SetEP8GPIFTC( HSPKTSIZE );
Peripheral_FIFORead( GPIF_EP8 );
ibn_event_flag = 0;
}
if( gpifdone_event_flag )
{ // GPIF currently pointing to EP8, last FIFO accessed
if( !( EP2468STAT & 0x80 ) )
{ // EP8F=0 when buffer available
INPKTEND = 0x08; // Firmware commits pkt
// by writing #8 to INPKTEND
gpifdone_event_flag = 0;
}
}
// decide how GPIF transitions to DONE for FIFO Transactions
if( gpif_pf_event_flag )
{
EP8GPIFPFSTOP = 0x01; // set bit0=1 to use GPIF_PF
}
else
{
EP8GPIFPFSTOP = 0x00; // set bit0=0 to use TC
}
… … … … …
}
Comentarios a estos manuales