Skip to content

How to get a type for a pointer or reference to a MIDI instance #162

Open
@sehrgut

Description

@sehrgut

There is no documentation for this, and no way to use the macros to generate an appropriate typedef for pointers to the MIDI interface. The only documentation for this is in the closed issue #33, but it's quite obsolete.

That guidance still only provided a way to hardcode a specific type. This restricts portability of code, since code written against one board won't necessarily run on another.

A macro which creates a typedef with the same type that would be created by the CREATE_INSTANCE macros would solve this issue, since it could be used in class headers that needed to receive references to the existing MIDI instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions