Is it possible to read a complete pin configuration (pull mode, direction, etc) by means of Arduino API? By ESP-IDF? I looked into ESP-IDF gpio_dump_io_configuration() but it uses some internal API & structures which are not accessible from user code without modifying and recompiling IDF.
I need this to implement "save pin" and "load pin" logic in my code. Need to be able to save full pin state and then restore it to configure the pin exactly as it was before
(although, IIRC, those were primarily exercises in turning ARM ".svd" files into C structures...)
I believe SAMD_Explorer was specifically structured to be able to 'add' to some sketch, though it was never made into a library like it ought to be.