Transponder Modes and IDENT command readable by 3rd parties

Hi,

Are you reading the TRANSPONDER IDENT simvar for this? I’d like to implement this in the A32NX. How do you interpret the various states of the TRANSPONDER STATE simvar?

-e- implementation: https://github.com/flybywiresim/a32nx/pull/6697

The logic is:
TransponderOn = mode switch = ON, or AUTO and airborne.
A:TRANSPONDER STATE:1 simvar =
0 if transponder is not powered
1 if transponder mode switch is STBY
3 if TransponderOn and ALT reporting off
4 if TransponderOn and ALT reporting on
5 if mode switch = AUTO and on ground (mode S)

A:TRANSPONDER IDENT is set true (via K event) when the transponder is ON or AUTO and the ident button is pressed (MSFS resets it after 18 seconds).

Does this line up with your implementation?

Thanks,
Mike