I have the same need, and looking into documentation I found this:
https://developer.apple.com/documentation/externalaccessory
But, do I need to be part of the MFi program even before even code the app? Is this possible to use and test in device before enter to the program?