PS2DET=B_0x0, PDET=B_0x0, SDET=B_0x0, DCDET=B_0x0
BCDEN | Battery charging detector (BCD) enable Device mode This bit is set by the software to enable the BCD support within the USB Device. When enabled, the USB PHY is fully controlled by BCD and cannot be used for normal communication. Once the BCD discovery is finished, the BCD should be placed in OFF mode by clearing this bit to 0 in order to allow the normal USB operation. |
DCDEN | Data contact detection (DCD) mode enable Device mode This bit is set by the software to put the BCD into DCD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. |
PDEN | Primary detection (PD) mode enable Device mode This bit is set by the software to put the BCD into PD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. |
SDEN | Secondary detection (SD) mode enable Device mode This bit is set by the software to put the BCD into SD mode. Only one detection mode (DCD, PD, SD or OFF) should be selected to work correctly. |
DCDET | Data contact detection (DCD) status Device mode This bit gives the result of DCD. 0 (B_0x0): data lines contact not detected. 1 (B_0x1): data lines contact detected. |
PDET | Primary detection (PD) status Device mode This bit gives the result of PD. 0 (B_0x0): no BCD support detected (connected to SDP or proprietary device). 1 (B_0x1): BCD support detected (connected to ACA, CDP or DCP). |
SDET | Secondary detection (SD) status Device mode This bit gives the result of SD. 0 (B_0x0): CDP detected. 1 (B_0x1): DCP detected. |
PS2DET | DM pull-up detection status Device mode This bit is active only during PD and gives the result of comparison between DM voltage level and VLGC threshold. In normal situation, the DM level should be below this threshold. If it is above, it means that the DM is externally pulled high. This can be caused by connection to a PS2 port (which pulls-up both DP and DM lines) or to some proprietary charger not following the BCD specification. 0 (B_0x0): Normal port detected (connected to SDP, ACA, CDP or DCP). 1 (B_0x1): PS2 port or proprietary charger detected. |
DPPU_DPD | DP pull-up / DPDM pull-down Device mode This bit is set by software to enable the embedded pull-up on DP line. Clearing it to 0 can be used to signal disconnect to the host when needed by the user software. Host mode This bit is set by software to enable the embedded pull-down on DP and DM lines. |