Pro II: Extension and Interface Modules
Pro II-CAN-FD-2 Rev. E
ADwin
168
ADwin-Pro II
Hardware, manual Dec. 2018
Programming
Programming in ADbasic
The module is comfortably programmed with
ADbasic
instructions. The
instructions are described in
ADbasic
online help and in the Pro II Software
manual.
The include file
ADwinPro_All.inc
contains instructions for the following
functions:
Function
Instructions
Initializate CAN control-
ler, set Baud rate
P2_CANFD_Init_Datatable
P2_CANFD_Init_Controller
P2_CANFD_Enable_Receive_Fifo
P2_CANFD_Enable_Transmit_Fifo
P2_CANFD_Enable_Transmit_Queue
P2_CANFD_Enable_Transmit_Event_Fifo
P2_CANFD_Set_Baudrate_Nominal
P2_CANFD_Set_Baudrate_Data
P2_CANFD_Set_SID11
P2_CANFD_Set_TDC
P2_CANFD_Set_Mode
Check status
P2_CANFD_Get_Fifo_State
Receive message
P2_CANFD_Read_RMO
P2_CANFD_Get_Header_Parts
P2_CANFD_Get_ID
P2_CANFD_Get_ESI
P2_CANFD_Get_FDF
P2_CANFD_Get_BRS
P2_CANFD_Get_RTR
P2_CANFD_Get_IDE
P2_CANFD_Get_DLC
Tr a n s f e r a n d c h e c k
message
P2_CANFD_Write_TMO
P2_CANFD_Transmit_MSG
P2_CANFD_Transmit_Multi_MSG
P2_CANFD_Read_EFO
P2_CANFD_Get_SEQ
Read registers
P2_CANFD_Get_TREC
P2_CANFD_Get_BDIAG0
P2_CANFD_Get_BDIAG1
Use LED
P2_Check_LED
,
P2_Set_LED
P2_CANFD_Set_LED