MC33774A Driver Document

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

MC33774A Driver Document

Jump to solution
1,712 Views
mohanagv
Contributor II

I am unable to understand the InitMap() function and hash table creation in the MC33774A driver code. Is there any documentation available to help understand these concepts?

 

Regards,

Mohana G V

0 Kudos
Reply
1 Solution
1,692 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Please refer to the attached document describing the Hashmap functionality.

I hope it helps.

BRs, Tomas

View solution in original post

5 Replies
1,671 Views
mohanagv
Contributor II

mohanagv_0-1731060422126.png

 

In which order are the devices added? Also, please check the calculation below.

In the MC33774A driver code, the first device address added to the HashMap is ALL_CHAINS(7) and ALL_DEVICES(63). According to the table above, if we add ALL_CHAINS(7) and ALL_DEVICES(63), the HashMap index will be calculated as:

((7<<8)|63) % 10

This results in an index of 5. Is this calculation correct?

 

Regards,

Mohana G V

0 Kudos
Reply
1,631 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Indeed the calculation you provided is correct, the index for that element in that specific configuration is 5.

As noted in the document, the tables don’t show exactly the position of each element in the table for that specific case, as it does not provide useful information for the user (the allocation for each element is taken care of by designated APIs).

Please use the document as a guideline in order to know what elements you would expect to find in the hash map depending on the configuration used.

BRs, Tomas

0 Kudos
Reply
1,693 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Please refer to the attached document describing the Hashmap functionality.

I hope it helps.

BRs, Tomas

1,425 Views
nirmal_masilamani
Contributor IV

Hi @TomasVaverka ,

Could you please share the S32DS IDE version for BMS example code.

If Possible, could you please share the any refer link or documents?

 

Thanks in Advance.

0 Kudos
Reply
1,363 Views
nirmal_masilamani
Contributor IV

Hello @TomasVaverka ,

Waiting for your input. Please share the IDE version and package details for BMS example code.

Thanks in advance.

0 Kudos
Reply