cancel
Showing results for 
Search instead for 
Did you mean: 

usb cub mx

omid hamdi
Senior
Posted on August 01, 2017 at 11:55

HI

ON STM32f cubmx mass storage device i need understanding device connect to pc or not 

please help me how can write program for

understand cable is connect or not 

1 REPLY 1
Posted on August 01, 2017 at 13:59

Hello!

Need more details about your hardware or your configuration..

In general 

hyour_device, is your initialised USB handle

Check if..

if(hyour_device.dev_state == USBD_STATE_CONFIGURED)

If is TRUE means that device is connected to Host machine  and cofigured properly.