Added code for ftdi direct access