USB on-chip driver information

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

USB on-chip driver information

353件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Fernando on Mon Feb 28 16:46:37 MST 2011
Hello. I´m developing an application using the on-chip USB driver and some questions arised.

First of all, the drivers require two callback functions to handle the in/out transactions.
In the report OUT function callback, the user must provide a pointer to some data area where the incoming usb data will be stored. The question is, if i reserved 384 bytes of RAM memory needed for the drivers, why do i need to use more memory?
am i wrong with this?

The second question is where are the callback functions called?? inside the usb interrupt?? I want to know, in order to develop efficient code, if its called from an isr or from any other function. Because is not the same to make a big callback function with command parsing and data processing than a callback function that only stores the data and sets a flag.

Best regards,
Fernando
0 件の賞賛
返信
0 返答(返信)