介绍FT_SetDivisor函数的用法、参数、返回值、注意事项、适用的操作系统环境、调用代码示例等。
null
支持的操作系统
Linux
Mac OS X 10.4 以上版本
Windows 2000 以上版本
Windows CE 4.2以上版本
概述
FT_SetDivisor函数设置设备传输波特率,专用于设置非标准的波特率。
定义
FT_STATUS FT_SetDivisor (FT_HANDLE ftHandle, USHORT usDivisor)
参数说明
ftHandle—设备句柄。
usDivisor—Divisor.
返回值
成功则返回FT_OK,如果失败则根据错误返回特定错误码(FT_*).
备注
FT_SetDivisor函数逐渐不再被使用,因为 FT_SetBaudRate 函数目前已经支持自动计算非标准波特率对应的系数因子(divisor). The application note “Setting baud rates for the FT8U232AM” is
available from the Application Notes section of the FTDI website describes how to calculate the divisor for
a non-standard baud rate.
代码示例
暂无。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容