Toshiba TLCS-900/H1 Series Data Book page 226

32bit micro controller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

 
(3) Vendor request  (class request)
Automatically answers Vendorrequest in USBC don't support.
According to INT_SETUPinterrupt, access to register store of Device Request, and discern receiving
request. If this request is Vendor request, massage USBC in outside, and you has to process according
to it.
Below is explanation case of data-phase is sending(Contorolread),and case of data-phase is
receiving(Contorolwrite).   
(a) Contorol Request
BmRequestType
bRequest
110000xxB
Vender peculiar
When it receive into INT_SETUP, Application judge content of device request by bmRequestType、
bRequest,wValue,wIndex,wLength register and you process adequate it. Application access to
"Setup_Received register" after judged request. And application has to inform USBC to recognize into
INT_SETUP.
  If you prepare sending data in application side, you access DATASET register and you must confirm
"0" in EP0_DSET_Abit. And you write data at FIFO-RAM of endpoint 0.If you send data more than
payload, write data after you confirm whether a bit of EP0_DSET_A in DATASET register is "0".(You
may use interrupt signal of INT_ENDPOINT0.)If you finish a writing all data, you write "0" at bit of EP0
on EOP register.When USBC received it ,it close automatically status stage.  And when USBC
normally close status stage, it asserts interrupt INT_STATUS.If out side application recognize normally
close status stage, you management stage by this interrupt signal. Maybe you don't normally close
status stage, and maybe you receive new SETUPTokeninto the stage. When assert INT_SETUP
interrupt signal, put "1" to STAGE_ERROR bit in EP0_STATUS register. This operation inform Status
Stage can't finish normally to outside.
  And there is case of dataphasefinish in data number is short than value showed to wLength in
protocol in Contorol-read-transfer-type of USB. If composed transaction of only wLength value in
application program, this function can't meet in case of host change Status Stage nothing arrive at
expect data number. At this point, you can inform change of Status Stage by INT_STATUSNAK
interrupt signal. (But you have to cancel mask of STATUS_NAKbit in interrupt Contorol register.) As it
is, case of Vendorrequest, it set receiving buffer size to Host Contoroller in driverside. Therefore we
think don't occur thing like this. (Data sending in Payload of 8byte from device recognaized Short
Packet until grasp Payload Size of deviceside by host. If you contorol Standard Request, you have to
regard to software by may be abobe case on the exterior.)
wValue
wIndex
Vendor peculier
Vendor peculier
92CH21-222
TMP92CH21
wLength
Vendor peculier
Vendor Data
(expire0)
Data
 

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92ch21fg

Table of Contents