Trailer Wiring

For my truck I got the adapter harness that plug inline to both tail lights and it had a 4 prong flat plug in the middle. Then I got the 7 way RV style plug/harness that plugs into the flat plug and one wire goes directly to the trailer brakes and think the other was ground or directly to the battery of the vehicle. Then you can get almost any 7 way RV plug adapter to fit your needs,like a 7 way RV to 4 flat plug adapter or 7 way RV to 6 round adapter. If you catch my drift.
Huh?