|
Zephyr API Documentation 4.3.0-rc1
A Scalable Open Source RTOS
|
Universal MIDI Packet definitions. More...
Topics | |
| MIDI commands | |
| Message types | |
| System common and System Real Time message status | |
| UMP Stream Responder | |
| Respond to UMP Stream message Endpoint or Function Block discovery. | |
| UMP Stream specific fields | |
| Universal MIDI Packet (UMP) Format and MIDI 2.0 Protocol | |
Data Structures | |
| struct | midi_ump |
| Universal MIDI Packet container. More... | |
Macros | |
| #define | UMP_MT(ump) |
| Message Type field of a Universal MIDI Packet. | |
| #define | UMP_NUM_WORDS_LOOKUP_TABLE |
| There are 16 UMP message types, each of which can be 1 to 4 uint32 long. | |
| #define | UMP_NUM_WORDS(ump) |
| Size of a Universal MIDI Packet, in 32bit words. | |
| #define | UMP_GROUP(ump) |
| MIDI group field of a Universal MIDI Packet. | |
| #define | UMP_MIDI_STATUS(ump) |
| Status byte of a MIDI channel voice or system message. | |
| #define | UMP_MIDI_COMMAND(ump) |
| Command of a MIDI channel voice message. | |
| #define | UMP_MIDI_CHANNEL(ump) |
| Channel of a MIDI channel voice message. | |
| #define | UMP_MIDI1_P1(ump) |
| First parameter of a MIDI1 channel voice or system message. | |
| #define | UMP_MIDI1_P2(ump) |
| Second parameter of a MIDI1 channel voice or system message. | |
| #define | UMP_MIDI1_CHANNEL_VOICE(group, command, channel, p1, p2) |
| Initialize a UMP with a MIDI1 channel voice message. | |
| #define | UMP_SYS_RT_COMMON(group, status, p1, p2) |
| Initialize a UMP with a System Real Time and System Common Message. | |
Universal MIDI Packet definitions.
| #define UMP_GROUP | ( | ump | ) |
#include <zephyr/audio/midi.h>
MIDI group field of a Universal MIDI Packet.
| [in] | ump | Universal MIDI Packet |
| #define UMP_MIDI1_CHANNEL_VOICE | ( | group, | |
| command, | |||
| channel, | |||
| p1, | |||
| p2 ) |
#include <zephyr/audio/midi.h>
Initialize a UMP with a MIDI1 channel voice message.
| group | The UMP group |
| command | The MIDI1 command |
| channel | The MIDI1 channel number |
| p1 | The 1st MIDI1 parameter |
| p2 | The 2nd MIDI1 parameter |
| #define UMP_MIDI1_P1 | ( | ump | ) |
#include <zephyr/audio/midi.h>
First parameter of a MIDI1 channel voice or system message.
| [in] | ump | Universal MIDI Packet (containing a MIDI1 message) |
| #define UMP_MIDI1_P2 | ( | ump | ) |
#include <zephyr/audio/midi.h>
Second parameter of a MIDI1 channel voice or system message.
| [in] | ump | Universal MIDI Packet (containing a MIDI1 message) |
| #define UMP_MIDI_CHANNEL | ( | ump | ) |
#include <zephyr/audio/midi.h>
Channel of a MIDI channel voice message.
| [in] | ump | Universal MIDI Packet (containing a MIDI event) |
| #define UMP_MIDI_COMMAND | ( | ump | ) |
#include <zephyr/audio/midi.h>
Command of a MIDI channel voice message.
| [in] | ump | Universal MIDI Packet (containing a MIDI event) |
| #define UMP_MIDI_STATUS | ( | ump | ) |
#include <zephyr/audio/midi.h>
Status byte of a MIDI channel voice or system message.
| [in] | ump | Universal MIDI Packet (containing a MIDI1 event) |
| #define UMP_MT | ( | ump | ) |
#include <zephyr/audio/midi.h>
Message Type field of a Universal MIDI Packet.
| [in] | ump | Universal MIDI Packet |
| #define UMP_NUM_WORDS | ( | ump | ) |
#include <zephyr/audio/midi.h>
Size of a Universal MIDI Packet, in 32bit words.
| [in] | ump | Universal MIDI Packet |
| #define UMP_NUM_WORDS_LOOKUP_TABLE |
#include <zephyr/audio/midi.h>
There are 16 UMP message types, each of which can be 1 to 4 uint32 long.
Hence this packed representation of 16x2b array as an uint32 lookup table
| #define UMP_SYS_RT_COMMON | ( | group, | |
| status, | |||
| p1, | |||
| p2 ) |
#include <zephyr/audio/midi.h>
Initialize a UMP with a System Real Time and System Common Message.
| group | The UMP group |
| status | The status byte |
| p1 | The 1st parameter |
| p2 | The 2nd parameter |