Enumerations | Functions

Device independent utility functions.

Enumerations

enum  midi_packet_length_t { UNDEFINED = 0, ONE = 1, TWO = 2, THREE = 3 }

Functions

bool midi_is_statusbyte (uint8_t theByte)
 Test to see if the byte given is a status byte.
bool midi_is_realtime (uint8_t theByte)
 Test to see if the byte given is a realtime message.
midi_packet_length_t midi_packet_length (uint8_t status)
 Find the length of the packet associated with the status byte given.

Enumeration Type Documentation

An enumeration of the possible packet length values.

Enumerator:
UNDEFINED 
ONE 
TWO 
THREE 

Function Documentation

bool midi_is_realtime ( uint8_t  theByte  ) 

Test to see if the byte given is a realtime message.

Parameters:
theByte the byte to test
Returns:
true if it is a realtime message, false otherwise
bool midi_is_statusbyte ( uint8_t  theByte  ) 

Test to see if the byte given is a status byte.

Parameters:
theByte the byte to test
Returns:
true if the byte given is a midi status byte
midi_packet_length_t midi_packet_length ( uint8_t  status  ) 

Find the length of the packet associated with the status byte given.

Parameters:
status the status byte
Returns:
the length of the packet, will return UNDEFINED if the byte is not a status byte or if it is a sysex status byte