CANopen Manager / Slave Manual - esd electronics, Inc.
CANopen Manager / Slave Manual - esd electronics, Inc.
CANopen Manager / Slave Manual - esd electronics, Inc.
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4.5 Assistant Functions<br />
canOpenGetVersions()<br />
Name: canOpenGetVersions() - Return version of slave components.<br />
<strong>CANopen</strong>-<strong>Slave</strong><br />
Synopsis: void canOpenGetVersions<br />
(<br />
CANOPEN_VERSIONS *versions /* pointer to version structure */<br />
)<br />
Description: This function returns the version numbers of the components described in the<br />
introduction.<br />
Return: N/A.<br />
A pointer to the data structure below which is initialized by the <strong>CANopen</strong> slave<br />
library.<br />
typedef struct<br />
{<br />
unsigned short cos;<br />
unsigned short sdm;<br />
unsigned short pdm;<br />
unsigned short nmt;<br />
unsigned short dbt;<br />
unsigned short cms;<br />
unsigned short sys;<br />
unsigned short can;<br />
} CANOPEN_VERSIONS;<br />
The revision number of each component is a 16-bit value with the following<br />
format:<br />
Bits 15...12 Bits 11...8 Bits 7...0<br />
level revision change<br />
<strong>CANopen</strong> <strong>Slave</strong> Software <strong>Manual</strong> • Doc. No.: C.2002.21 / Rev. 2.2 Page 45 of 65