User manual
CPC_Get_Version
Syntax: #include cpc.h
char * CPC_Get_Version(void);
Description: CPC_Get_Version returns the version number
of the connected CPC-PP module.
Return value: Pointer to a string with the version number or
NULL in case of errors.
CPC_Init
Syntax: #include cpc.h
int CPC_Init(void);
Description: CPC_Init() initialises the communication with
CPC-XTI. CPC-XTI is initialised to standard
parameters, which are stored in the global
structure CPC_Init_Params (declaration in
cpc.h). These parameters can be changed on
demand before calling CPC_Init(). CPC_Init()
is to be called before using the other functions
of the interface library.
Return value: 0 for correct initialization,
–1 for initialization errors.
User Manual CPC-XTI
EMS Dr. Thomas Wünsche 11
CPC_Read_Msg
Syntax: #include cpc.h
void CPC_Read_Msg
(struct CPC_CAN_MSG *);
Description: CPC_Read_Msg() receives a message from
the CAN. The received communication object
is stored in a structure of type
CPC_CAN_MSG, which is indicated by the
pointer passed on function call.
Return value: –
CPC_Send_Msg
Syntax: #include cpc.h
int CPC_Send_Msg
(struct CPC_CAN_MSG *);
Description: CPC_Send_Msg() sends a message across
the CAN. The function call passes a pointer to
a structure of type CPC_CAN_MSG, which
contains the communication object to be
transmitted.
Return value: –
CPC-XTI User Manual
12 EMS Dr. Thomas Wünsche