EMS CPC-PP User Manual page 7

Can-pc interface
Table of Contents

Advertisement

User Manual
CPC_Get_Serial
Syntax:
#include "cpc.h"
char * CPC_Get_Serial(void);
Description:
CPC_Get_Serial returns the serial number of
the connected CPC-PP module.
Return value: Pointer to a string with the serial number or
NULL in case of errors.
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.
EMS Dr. Thomas Wünsche
CPC-PP
9
CPC-PP
CPC_Init
Syntax:
#include "cpc.h"
int CPC_Init(void);
Description:
CPC_Init() initialises the communication with
CPC-PP. CPC-PP is initialised to standard pa-
rameters, which are stored in the global struc-
ture CPC_Init_Params (declaration in cpc.h).
These parameters can be changed on de-
mand before calling CPC_Init(). CPC_Init() is
to be called before usage of the other
functions of the interface library.
Return value: 0
for correct initialization,
-1 for initialisation errors.
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-bus. 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: -
10
EMS Dr. Thomas Wünsche
User Manual

Advertisement

Table of Contents
loading

Table of Contents