Epson S2R72V18 Technical Manual page 98

Table of Contents

Advertisement

The bulk-only support function is valid for channel CHa. The transport processing is as shown below
when using this function. The firmware performs steps (1) to (5) and (8).
(1) The following basic settings are set appropriately in channel CHa.
Transfer speed (H_CHaConfig_0.SpeedMode), max packet size (H_CHaMaxPktSize), USB
address (H_CHaFuncAdrs.FuncAdrs), FIFO area (AREAn{n=0-5}StartAdrs_H,L,
AREAn{n=0-5}EndAdrs_H,L), FIFO area join (AREAn{n=0-5}Join_1.JoinEPaCHa)
(2) The following control registers are set appropriately for the bulk-only support function.
OUT endpoint toggle sequence (H_CHaBO_OUT_EP_Control.OUT_Toggle), OUT endpoint
number (H_CHaBO_OUT_EP_Control.OUT_EP_Number), IN endpoint toggle sequence
(H_CHaBO_IN_EP_Control.OUT_Toggle), IN endpoint number
(H_CHaBO_IN_EP_Control.IN_EP_Number)
(3) Writes CBW data (31 bytes) to the FIFO CBW area.
(4) Sets DMA or PIO settings to the FIFO area joined to CHa.
(5) Sets bulk-only support execution (H_CHaBO_SupportControl.BO_SupportGo).
The transport status (H_CHaBO_SupportControl.BO_TransportState) value is written to the
H_CHaBO_SupportControl register as "Idle(00b)."
(6) Sends the CBW area data (31 bytes) to the OUT-direction endpoint indicated by the OUT endpoint
number (H_CHaBO_OUT_EP_Control.OUT_EP_Number) using a bulk OUT transaction
(command transport).
(7) Executes data transport depending on the CBW data.
• If the CBW data bmCBWFlags Bit7 is 0, the data in the FIFO area joined to CHa is sent to the
OUT-direction endpoint indicated by the OUT endpoint number
(H_CHaBO_OUT_EP_Control.OUT_EP_Number) by a bulk OUT transaction (OUT-direction
data transport). The OUT-direction data transport ends once the data quantity indicated by the CBW
data dCBWDataTransferLength has been sent by the OUT transaction.
• If the CBW data bmCBWFlags Bit7 is 1, a bulk IN transaction is issued to the IN-direction
endpoint indicated by the IN endpoint number (H_CHaBO_IN_EP_Control.IN_EP_Number),
and the data received is written to the FIFO area joined to CHa (IN-direction data transport).
The IN-direction data transport ends once the data quantity indicated by the CBW data
dCBWDataTransferLength has been received by the IN transaction. The IN-direction data
transport also ends when a short packet is received for the IN transaction.
• If the CBW data dCBWDataTransferLength value is 0x00000000, no data transport is
performed.
S2R72V18 Technical Manual (Rev.1.00)
EPSON
1. Functions
81

Advertisement

Table of Contents
loading

Table of Contents