Error with CRC_GetBlockCRC function

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error with CRC_GetBlockCRC function

524 Views
nadiajarray
Contributor II

I'm trying to use the CRC component to check an SPI communication

but by using the function CRC1_GetBlockCRC this way

CRC1_GetBlockCRC(CRC1_TDeviceData, &RVG_SPIReadBuffer, RVG_SPIReadBufferSize*sizeof(uint8_t), &ResultRead);

I'm getting the error "expected expression before'CRC1_TDeviceData'

Can someone provide an explanation for that ?

Thx

Labels (1)
Tags (1)
1 Reply

409 Views
TICS_Fiona
NXP Employee
NXP Employee

Hello Nadia

How did you define the type for  CRC1_TDeviceData?

Below is the typical way for initializing the device data structure and call API function:

LDD_TDeviceData *DeviceData=NULL;

………………………

DeviceData = CRC1_Init(NULL);

………………………

    CRC1_GetBlockCRC(DeviceData, (LDD_TData*) InputStream, BLOCK_SIZE*sizeof(uint32_t), &Result);

Hope this helps! If not, could you please attach a simple example project to help me reproduce the error? Thanks!

Best Regards

Fiona Kuang

TIC - Technical Information Center

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Mark Correct button. Thank you!

-----------------------------------------------------------------------------------------------------------------------