MC33774A Driver Document

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MC33774A Driver Document

跳至解决方案
1,709 次查看
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 项奖励
回复
1 解答
1,689 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Please refer to the attached document describing the Hashmap functionality.

I hope it helps.

BRs, Tomas

在原帖中查看解决方案

5 回复数
1,668 次查看
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 项奖励
回复
1,628 次查看
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 项奖励
回复
1,690 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Please refer to the attached document describing the Hashmap functionality.

I hope it helps.

BRs, Tomas

1,422 次查看
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 项奖励
回复
1,360 次查看
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 项奖励
回复