how to use the function FT_SetBaudRate?

Supported Operating Systems  by FT_SetBaudRate

Linux
Mac OS X (10.4 and later)
Windows (2000 and later)
Windows CE (4.2 and later)

【FT】限时秒杀!!!!! 内部专享
| 月销量3719件
券后229.9-200=29元
原价¥229.9

淘口令:

¥Yb9aXt9WAte¥
 

Summary of FT_SetBaudRate

This function sets the baud rate for the device.

Definition of FT_SetBaudRate

FT_STATUS FT_SetBaudRate (FT_HANDLE ftHandle, DWORD dwBaudRate)

Parameters of FT_SetBaudRate

ftHandle      Handle of the device.
dwBaudRate      Baud rate.

Return Value of FT_SetBaudRate

FT_OK if successful, otherwise the return value is an FT error code.

Example about FT_SetBaudRate

FT_HANDLE ftHandle;
FT_STATUS ftStatus;
ftStatus = FT_Open(0, &ftHandle);
if(ftStatus != FT_OK) {
// FT_Open failed
return;
}
ftStatus = FT_SetBaudRate(ftHandle, 115200); // Set baud rate to 115200
if (ftStatus == FT_OK) {
// FT_SetBaudRate OK
}
else {
// FT_SetBaudRate Failed
}
}
FT_Close(ftHandle);

© 版权声明
THE END
喜欢就支持一下吧,技术咨询可以联系QQ407933975
点赞0
分享
评论 抢沙发
CPPKU的头像-cppku-C++库

昵称

取消
昵称表情代码图片