Text this: Bidirectional asynchronous generator and battery interface circuit