CANpie FD
CAN programming interface environment - Version 3.08
|
The function for bit-rate setup CpCoreBaudrate() has been renamed to CpCoreBitrate(), the new function has an additional parameter for configuration of the data bit-rate. The following code example shows the difference between the two API versions for a bit-rate setting of 500 kBit/s.
The functions CpCoreBufferInit() and CpCoreBufferAccMask() have been removed, the function CpCoreBufferConfig() is the replacement.
The following example code depicts the difference for initialization of a transmit message buffer between CANpie and CANpie FD. New new API does not require a CAN message structure CpCanMsg_ts any more.
The following example code depicts the difference for initialization of a receive message buffer between CANpie and CANpie FD. New new API does not require a CAN message structure CpCanMsg_ts any more.