After hardware reset, all endpoints except endpoint 0 are uninitialized and disabled. The DCD must configure and enable each endpoint by writing to the configuration register usb.ENDPTCTRLx. Each 32-bit usb.ENDPTCTRLx is split into an upper and lower half. The lower half of usb.ENDPTCTRLx register is used to configure the receive or OUT endpoint and the upper half is likewise used to configure the corresponding transmit or IN endpoint. Control endpoints must be configured the same in both the upper and lower half of the usb.ENDPTCTRLx register otherwise the behavior is undefined. The following table shows how to construct a configuration word for endpoint initialization.
| Field | Value | Meaning |
|---|---|---|
| Data Toggle Reset, usb.ENDPTCTRLx [TXR] | 1 | Restart transfers with DATA0 PID. |
| Data Toggle Inhibit, usb.ENDPTCTRLx [TXI] | 0 | Toggle between DATA0 and DATA1 PIDs. |
| Endpoint Type, usb.ENDPTCTRLx [TXT] | Depends on the setup request. |
00: Control 01 : Isochronous 10 : Bulk 11 : Interrupt |
| Endpoint Stall, usb.ENDPTCTRLx [TXS] | 0 | Do not force stall response. |