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 GUOGE黑色连衣裙女2021夏新款方领法式复古赫本风泡泡袖气质裙
| 月销量1537件
优惠价178元
原价¥356

淘口令:

¥eG6FX9xsfy0¥
 

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
分享
评论 抢沙发