Connection status on firmware

Hello,

I’m implementing something (it’s in very early stage, will provide details as soon as it’s usable) that requires to know when klippy is connected to the mcu, on the mcu side. I’m aware that there is a sched_is_shutdown, great, the DECL_SHUTDOWN is enough for this, but I need to find when it’s connected and when the connection is lost, I’m usually good at reading and interpreting existing code, but I failed to see something obvious, is there something I missed ? or not possible at all to know this in an unobtrusive way?

Thanks.

Due to the lack of replies, am I to assume there is no way of knowing on the firmware when the host is disconnected ?

@koconnor ?