![Jäger ADwin-Gold II Скачать руководство пользователя страница 157](http://html1.mh-extra.com/html/jager-0/adwin-gold-ii/adwin-gold-ii_manual_3209266157.webp)
ADwin-Gold II
, Manual February 2013
151
CAN interface
Get_CAN_Reg
ADwin
Get_CAN_Reg
Get_CAN_Reg
reads the value of a specified register in the CAN controller of
a CAN interface.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Get_CAN_Reg
(
can_no
,
regno
)
Parameters
Notes
You will find the register list of the CAN controller in the Intel
®
AN82527
datasheet.
See also
Valid for
Gold II-CAN
Example
Rem Please select the appropriate include for ADbasic /
TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Init:
Init_CAN
(
1
)
'Initialize CAN controller 1
Par_1
=
Get_CAN_Reg
(
1
,
0
)
'Read out control register
T11 TiCo
can_no
Number (1, 2) of CAN interface.
LONG
regno
Register number in the CAN controller (0…255).
LONG
ret_val
Contents of the register (transferred in lower
8 bits).
LONG