VBUS mbed LPC1768

Hi everyone
I am trying to use VBUS in LPC1768 to detect when my board is connected to a host pc. In order to do this, I must configure VBUS as digital input in my program or there is other way to do that?

Thaks for your help.
best regards