Download CANpie Users Guide

Transcript
CpCoreBufferGetDlc
Core Functions
4.5 CpCoreBufferGetDlc
Syntax
_TvCpStatus CpCoreBufferGetDlc(
_TsCpPort *
ptsPortV,
_U08
ubBufferIdxV,
_U08 *
pubDlcV)
Function
Get DLC of specified buffer
This function retrieves the Data Length Code (DLC) of the specified
buffer ’ubBufferIdxV’.
Parameters
Return value
CANpie Users Guide
ptsPortV
Pointer to CAN port handle
ubBufferIdxV
Index of message buffer
pubDlcV
Pointer to destination buffer for DLC
4
Error code defined in the "canpie.h" headerfile. If no error occured, the
function will return ’CpErr_OK’.
25