Toroidal magnetic core