-
19
-
4.2.3. FT_Close
Function
Close the USB port and execute driver termination processing.
Format
FT_Close (FT_HANDLE ftHandle)
ftHandle
:
Set the handle number.
Return value
FT_OK
:
In case of “0”, success
Other tham “0”
:
Error
4.2.4. FT_SetBitMode
Function
Set I/O of 8 bits
Format
FT_SetBitMode (FT_HANDLE ftHandle, UCHAR ucMask, UCHAR ucMode)
ftHandle
:
Set the handle number
ucMask
:
Set HEX(00), 0
:
Input, 1
:
Output
Since “8 bits” are Photocoupler, set “00”.
ucMode
:
Set “1”
Return value
FT_OK
:
In case of “0”, success
Other than “0”
:
Error
4.2.5. FT_SetBaudRate
Function
Set the rewrite time of output data.
Format
FT_SetBaudRate (FT_HANDLE ftHandle, DWORD dwBaudRate)
ftHandle
:
Set the handle number
DwBaudRate
:
Set “9600”
When set to 9600, data is rewritten at 1 / (9600 × 16) = 6.51 µs
cycle. If there is no data in the buffer, the previous output is
continued.
Return value
FT_OK
:
In case of “0”, success
Other than “0”
:
Error