KORG microX utility.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.9 KiB

* asysex - A SysEx Utility
* Copyright (C) 2012 Damien Goutte-Gattat
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef ICP20120401_SYSEX_H
#define ICP20120401_SYSEX_H
#include <midi.h>
* Informations about a MIDI device.
* This structure holds the informations that a device is expected
* to send in response to an universal Device Inquiry System
* Exclusive message.
typedef struct midi_device_id
/** The identifier of the manufacturer of the device. */
unsigned int manufacturer;
/** A manufacturer-specific code identifying the device
* family among all the products from that manufacturer. */
unsigned int family;
/** A family-specific code identifying the device among
* all the products of that family. */
unsigned int model;
/** A version number for the device. */
unsigned int version;
/** The global MIDI channel used by this device. */
unsigned int global_channel;
} midi_device_id_t;
#ifdef __cpluscplus
extern "C" {
sysex_read(midi_io_t *, unsigned char *, size_t);
sysex_query(midi_io_t *, unsigned char *, size_t, unsigned char *, size_t);
sysex_identify(midi_io_t *, midi_device_id_t *);
const char *
sysex_get_manufacturer(unsigned int);
#ifdef __cplusplus
#endif /* !ICP20120401_SYSEX_H */