How to detect if usb connection is established
Hey. I'm trying to use my H7's usb interface and i've currently set it up as a cdc device.
What i'm trying to implement though is the following.
The stm is supposed to create a virtual connection with either a python app or a tera term terminal.
Is there a function or a variable that detects if this kind of a connection is established ? For example, the pico equivalent is tud_cdc_connected()
What i want to build is this
while(!exampleCOnnectionVariable)
{
HAL_DELAY(500)
}Meaning that my stm would wait during initialization, until a connection is established and then proceed with the super loop.
