This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM263P4: Doubts in mcrc code

Part Number: AM263P4

Tool/software:

Hi Team, 

     What is the difference between the dataLen and dataBitSize parameters of SDL_MCRC_Config_t structure?



  • Hi Sravya,

    I am working on your thread now and will try to provide my updates as soon as possible.

    --
    Thanks & regards,
    Jagadish.

  • HI Sravya,

    I understood the difference between these two, 

    Actually, both representing the data width only, however one (dataLen) is using to store the data length in the hardware register to indicate to MCRC hardware module regarding the data length we are using:

    And the other one is purely using in software to differentiate the different data sizes and using to take corresponding action using switch-case:

    You might ask that we can plan to use the same one for both the cases right, i guess the problem might be the order is not Stright for register values:

    As you can see 0 for 64bit, 1 for 16-bit and 2 for 32bit, maybe this is the reason they are maintaining two lengths, you can just maintain both as same bases on the corresponding enum or macro values.

    --
    Thanks & regards,
    Jagadish.