I did some measurements last night (relative to chassis ground):
* Pin 4 - Proximity Out from CP ECU goes to Rear drive inverter (Drive Inhibit I assume)
* Pin 5 - Latch Enable Input to CP ECU from "HV Battery"
* Pin 6 - Fault Line Output from CP ECU to "HV Battery"
1. Doors closed, trunk open, charge port door idle
- Pin 4 - 2.29V
- Pin 5 - 4.06V
- Pin 6 - 4.24V
2. Doors closed, trunk open, charge port door open
- Pin 4 - 2.29V
- Pin 5 - 4.06V
- Pin 6 - 4.24V
3. Doors closed, trunk open, charging
- Pin 4 - mV range
- Pin 5 - mv Range
- Pin 6 - 4.24V
4. Doors closed, trunk open, charging *interrupted*
- Button press restores values to idle / open.
- Within a few seconds charging resumes
- Values return to charging numbers after the relay has turned on.
Looks like the proximity In on the inverter is a pull-down, as unloaded that puts out 11.X volts on the bench for me.
Confirmed that the checksum calculation is correct for 2 of the three IDs using it. The third one I think I messed up the 0/1 modulus values, so I swapped them and will re-test that later.
The RTC stuff is more complicated than I'd like (ironically if we used an outside RTC like this:
https://crates.io/crates/ds323x I'd be done.

Since we're not, that'll take a little longer.

Lots of Binary Coded Decimal (BCD) values in registers, stuff that needs to be enabled, proxy variables...it's a little bit of a mess.
Also, searching for Rust RTC stuff I hit on this:
https://blog.tonari.no/why-we-love-rust - which shows features, and how I plan on getting it to work with STM32F7 Nucleo, F4 Nucleo, and production boards.
Action items:
* Verify checksum on last ID
* Set latch status to similar as to what is above and see how that affects behavior
* Update comments in code to denote items I would like to redact vs don't care, and publish updated code with more comments.
* Work on generalizing hardware-specific code to use features
* Update state machine to operate like stock does with respect to interrupted charging