MC33774A Driver Document

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC33774A Driver Document

ソリューションへジャンプ
1,814件の閲覧回数
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,794件の閲覧回数
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,773件の閲覧回数
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,733件の閲覧回数
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,795件の閲覧回数
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohana,

Please refer to the attached document describing the Hashmap functionality.

I hope it helps.

BRs, Tomas

1,527件の閲覧回数
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,465件の閲覧回数
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 件の賞賛
返信