LPC546xx: USB interrupt pipe polling notification

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC546xx: USB interrupt pipe polling notification

ソリューションへジャンプ
1,496件の閲覧回数
rex_lam
Contributor IV

Is there a way to be notified when the host polls the USB interrupt IN pipe? I looked at the USB example projects and it seems that USB0_IRQHandler is not triggered when the device has nothing to report, i.e. responds to the interrupt poll with NAK. I would like my code to be notified when it receives the interrupt IN poll from the host.

ラベル(2)
1 解決策
1,285件の閲覧回数
carstengroen
Senior Contributor II

Rex,

have a look at my post here: Custom USB class using USBROM (for LPC54608 and alike), code to grab  

(at the end of the page)

Basically I use

// Allow both acknowledged and NAK'ed  packets to generate interrupts (otherwise it is only acknowledged packets that generate interrupts)
LPC_USB0->DEVCMDSTAT |= (1<<12) | (1<<13);

元の投稿で解決策を見る

2 返答(返信)
1,286件の閲覧回数
carstengroen
Senior Contributor II

Rex,

have a look at my post here: Custom USB class using USBROM (for LPC54608 and alike), code to grab  

(at the end of the page)

Basically I use

// Allow both acknowledged and NAK'ed  packets to generate interrupts (otherwise it is only acknowledged packets that generate interrupts)
LPC_USB0->DEVCMDSTAT |= (1<<12) | (1<<13);
1,285件の閲覧回数
rex_lam
Contributor IV

Thank you Carsten.