PCI-1680U/1682U User Manual
52
The following code is the example to custom baud rate by setting BTR0 and
BTR1 device register.
AdvCANIO.h Line:269
/
**************************************************************
***************
*
* acSetBaudRegister
*
* Purpose:
* Configures baud rate by custom mode.
*
*
* Arguments:
* hDevice - handle of device
* Btr0 - BTR0 register value.
* Btr1 - BTR1 register value.
* Returns:
* =0 SUCCESS; or <0 failure
*
************************************************************
*****************/
int acSetBaudRegister(HANDLE hDevice, unsigned char Btr0,
unsigned char Btr1)
{
unsigned int BaudRateValue = Btr0 * 256;
BaudRat= Btr1;
return acSetBaud(hDevice, BaudRateValue);
}
can_receive.cpp Line:105
nRet = acSetBaudRegister( hDevice, byBtr0, byBtr1 ); //Set
baud rate
if ( nRet < 0 )
{
SetDlgItemText( hwnd, IDC_SHOW_RESULT, "Failed to set Baud
Rate!" );
return FALSE;
}
Summary of Contents for PCI-1680U
Page 10: ...PCI 1680U 1682U User Manual 4 ...
Page 16: ...PCI 1680U 1682U User Manual 10 5 Click Next as the following 6 Click Next as the following ...
Page 22: ...PCI 1680U 1682U User Manual 16 ...
Page 26: ...PCI 1680U 1682U User Manual 20 Figure 3 2 PCI 1682U Silk Screen ...
Page 85: ...79 PCI 1680U 1682U User Manual Chapter 4 Software Requirements WDM CE ...
Page 90: ...PCI 1680U 1682U User Manual 84 4 8 2 2 Receive flow chart ...
Page 91: ...85 PCI 1680U 1682U User Manual Chapter 4 Software Requirements 4 8 2 3 Configure flow chart ...
Page 103: ...97 PCI 1680U 1682U User Manual Chapter 5 Pin Assignments and Wiring ...