digital piano and cubase/midi compatibility

I have a Yamaha DGX-640 which uses USB MIDI. I have connected it to Cubase and it worked fine for recording the playing (including pedals and pitchbend). It came with software to create the MIDI port which will then show up in Cubase.
HTH
J.L.