Midi.begin in C

Hi, I am trying to simplify a code so that I can analyse exactly what is happening. What is the code equivalent of Midi.begin in the library Midi.h?

It’s right in the source files:

You might be interested in this Arduino MIDI article. It explains the basics needed to send MIDI using an Arduino, without using any third-party libraries, so you get a good understanding of what’s going on under the hood of the MIDI library, for example.

Note: Midi.begin is not C, it’s object oriented programming, so it has to be C++.