How to do a pcan2.0 send and receive with a timeout?
Posted: Tue 29. Aug 2017, 18:16
I am using the linux headers of peak-linux-driver-8.4.0.
When I use OFD_NONBLOCKING flag in pcanfd_open, the receive function will be a pure non-blocking function.
How do I send & receive pcan messages with a fixed timeout?
Are there any functions that are similar to:
When I use OFD_NONBLOCKING flag in pcanfd_open, the receive function will be a pure non-blocking function.
How do I send & receive pcan messages with a fixed timeout?
Code: Select all
int fd = pcanfd_open("/dev/pcan32", OFD_BITRATE | OFD_BTR0BTR1 | OFD_NONBLOCKING, PCAN_BAUD_250K);
Code: Select all
DWORD LINUX_CAN_Read_Timeout(HANDLE hHandle, TPCANRdMsg* pMsgBuff, int
nMicroSeconds);
DWORD LINUX_CAN_Write_Timeout(HANDLE hHandle, TPCANMsg* pMsgBuff, int
nMicroSeconds);