Part Number: TMS570LC4357
Tool/software:
Hi
Can you give me an example code using esmGetStatus for group 0 all channels? Is it
uint64 error =esmGetStatus(0, 0xffff ffff ffff ffff);
Thanks.
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.
Part Number: TMS570LC4357
Tool/software:
Hi
Can you give me an example code using esmGetStatus for group 0 all channels? Is it
uint64 error =esmGetStatus(0, 0xffff ffff ffff ffff);
Thanks.
Hi LayEng,
uint64 error =esmGetStatus(0, 0xffff ffff ffff ffff);
You are correct, this will give you the error status of all the 64 channels of the Group0.
--
Thanks & regards,
Jagadish.
Dear Jagadish
Thank you for your reply. Today my group discussed this function esmGetStatus(group, channels). I told them that
group parameter=0 means group1 of ESM,
group parameter=1 means group 2 of ESM and
group parameter=2 means group3 of ESM.
The header block of esmGetStatus function does not give any explanation. Please confirm if I am right or wrong. Thank you.
Hi LayEng,
group parameter=0 means group1 of ESM,
group parameter=1 means group 2 of ESM and
group parameter=2 means group3 of ESM.
The header block of esmGetStatus function does not give any explanation. Please confirm if I am right or wrong.
You are correct.
Hi Jagadish
No offence meant. My boss ask why not make group parameter=1 means group1 of ESM... You can easily subtract the value of group by 1.
Hi LayEng,
Actually, this is not an ideal way because we can't ignore the 0 value. As we are taking uint32 value for group data passing maybe it is not good to ignore the 0 value, 0 should also have some significant.
And more over if you verify the HL_ESM.h there you can find the definitions for group names.

As you can see esmGROUP1 is defined with value 0, esmGROUP2 is defined with value 1 and esmGROUP3 is defined with value 3.
Actually, you no need to call this like below.
uint64 error =esmGetStatus(0, 0xffff ffff ffff ffff);
Instead of you can include HL_ESM.h in your main file and then you can call like below:
uint64 error =esmGetStatus(esmGROUP1, 0xffff ffff ffff ffff);
The above one is more readable and easier to understand right?
--
Thanks & regards,
Jagadish.