K 10 svn:author V 3 ian K 8 svn:date V 27 2015-08-06T19:47:04.370327Z K 7 svn:log V 557 Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl. The ftdi chip itself has a "get bitmode" command that doesn't actually return the current bitmode, just a snapshot of the gpio lines. The chip apparently has no way to provide the current bitmode. This implements the functionality at the driver level. The driver starts out assuming the chip is in UART mode (which it will be, coming out of reset) and keeps track of every successful set-bitmode operation so that it can always return the current mode with UFTDIIOC_GET_BITMODE. END