MIDIGetStatus

Syntax

#include <cafe/midi.h>

#define MIDI_READY      0
#define MIDI_BUSY       2

s32 MIDIGetStatus(s32 chan);

Parameters

chan 0

Return Values

Returns one of the following codes. If MIDI_READY is returned, it indicates that API execution has terminated normally.

Description

Issues a command for obtaining the MIDI adapter status and waits for a response. The function call fails if a MIDI adapter is not connected.

Do Not Call From

Background Do not call this function from the background.
Multiple threads This function is not thread-safe.
Callbacks Do not call this function from any callback function.
Interrupt handler Do not call this function from any interrupt handler.
Exception handler Do not call this function from any exception handler.
Production code Do not call this function in production code. It is available only for debugging purposes.

Revision History

2013/06/21 Clarify that chan should always be 0.
2013/05/08 Automated cleanup pass.
2013/05/01 Remove non-existent MIDIGetStatusAsync.
2012/08/06 Cleanup pass.
2012/04/11 Port to Cafe.
2007/05/09 Initial version.


CONFIDENTIAL