when i call it,it will return 9 ERR_NOTAVAIL
how to use?
Hi 志權 ，
Could you tell us which chip or board you are used?
And where the CAN2_SetAcceptance Mask from?
For the convenience of solving the question, it is best for you to paste you 9 ERR_NOTALAIL.
The following is the API definition:
LDD_TError CAN_SetAcceptanceMask(LDD_TDeviceData *DeviceDataPtr, LDD_CAN_TMBIndex BufferIdx, LDD_CAN_TAccMask AccMask);
and below is some description for parameters as well as the return value.
So maybe you call this API when CAN is running, please disable it or put it into freeze mode before calling this function.
Hope that helps,
so,how to enter freeze mode and how to exit freeze mode?
You may use "CAN_SetOperationMode" to enter or exit the Freeze mode. Please kindly refer to the following for details.
There are 2 a callback function
Can i give NULL for use CAN_SetOperationMode
Yes, you can set them as NULL.
Retrieving data ...