Software description
UM2546
18/30
UM2546 Rev 1
5.2.1 Spy
mode
case
In spy mode, the door is open, and the Discovery kit may receive a second plug to spy the
messages exchanges.
In spy mode, the Discovery kit must not interfere with the two type C devices to which it is
connected.
This is why, as soon as open door is detected, T2, T3 and T5 MOSFETs are turned ON.
Door is open, RD56 (5K1 Ohms) is ignored (needed only for standalone mode to be seen as
a sink), and CC1 and CC2 pins are connected from the G0 UCPD IP.
Figure 12. CC lines isolation/pull down
if no micro USB is plugged, as soon as the source device detects the sink device, VBUS is
driven, and the G0 Discovery kit is powered on.
Here are the menus sequence. Details on the menus in following
Section 5.2.3
Table 6. Code example: MOSFET control in spy mode
BSP_MOSFET_On(MOSFET_ENCC1);
BSP_MOSFET_On(MOSFET_ENCC2);