qmk-firmware/docs/api_midi_device_setup_process.md
skullydazed 7c9d5ace14 Generate API docs from source code comments (#2491)
* Generate api docs from source code

* Add a bunch of doxygen comments

* more doxygen comments

* Add the in-progress api docs

* script to generate docs from travis

* Add doc generation to the travis job

* make travis_docs.sh commit the work it does

* make sure the docs script exits cleanly
2018-03-22 02:50:38 -04:00

1.5 KiB

group midi_device_setup_process

These are method that you must use to initialize and run a device.

Summary

Members Descriptions
public void midi_device_init(MidiDevice * device) Initialize a device.
public void midi_device_process(MidiDevice * device) Process input data.

Members

public void midi_device_init(MidiDevice * device)

Initialize a device.

You must call this before using the device in question.

Parameters

  • device the device to initialize

public void midi_device_process(MidiDevice * device)

Process input data.

This method drives the input processing, you must call this method frequently if you expect to have your input callbacks called.

Parameters

  • device the device to process