Z
znxia
Unregistered / Unconfirmed
GUEST, unregistred user!
麻烦哪位把下列函数CPM_InitPort和CPM_InitMaster的定义转化为delphi代码。------------------------typedef struct// canchannel{ BYTE bBoardNo; BYTE bPort;} CANChannelStruct;typedef struct cpmconfig{ BYTE AccCode[4]; BYTE AccMask[4]; BYTE BaudRate;} CPMConfigStruct;typedef struct packet{ LONGLONG MsgTimeStamps; BYTE mode; DWORD id; BYTE rtr; BYTE len; BYTE data[8];} PacketStruct;extern "C" __declspec(dllexport) WORD CALLBACK CPM_InitPort(BYTE bBoardNo,BYTE bPort,CANChannelStruct *ChannelHandle);extern "C" __declspec(dllexport) WORD CALLBACK CPM_InitMaster(CANChannelStruct *ChannelHandle, CPMConfigStruct *CanConfig, WORD wSDOTimeout);