Data Structures And Library Functions - EMS CPC-PP User Manual

Can-pc interface
Table of Contents

Advertisement

User Manual

2.5 Data Structures and Library Functions

2.5.1 Data Structures
The following structures are declared in the
include-file cpc.h.
Please notice that the structures and
functions described in the following refer
to the old DOS and Windows libraries and
are included in this manual for compatibili-
ty reasons. The new structures and
functions are described within the manual
'CPC Series Development Kit for MS Wind-
ows environment'.
struct CPC_MSG
Declaration:
struct CPC_MSG {
unsigned char typ;
unsigned char length;
union {
unsigned char genericmsg[];
unsigned char textmsg[];
char versionmsg[];
char serialmsg[];
struct CPC_CAN_MSG canmsg;
unsigned char canstatemsg;
struct CPC_CAN_PARAMS
can_params_msg;
};
};
Description:
CPC_MSG serves for parameter-transfer bet-
ween application program and interface
library.
EMS Dr. Thomas Wünsche
CPC-PP
5
CPC-PP
struct CPC_CAN_MSG
Declaration:
struct CPC_CAN_MSG {
unsigned short id;
unsigned char length;
unsigned char overrun;
unsigned char msg[8];
};
Description:
CPC_CAN_MSG serves for transfer of
CAN-messages between application program
and interface-library.
struct CPC_CAN_PARAMS
Declaration:
struct CPC_CAN_PARAMS {
unsigned char acc_code;
unsigned char acc_mask;
unsigned char btr0, btr1;
unsigned char outp_contr;
};
Description:
CPC_CAN_PARAMS defines initialization va-
lues for the CAN controller in CPC-PP (type
PCA82C200).
6
EMS Dr. Thomas Wünsche
User Manual

Advertisement

Table of Contents
loading

Table of Contents