MBNG_SYSEX

Collaboration diagram for MBNG_SYSEX:

Data Structures

union  sysex_state_t

Defines

#define MBNG_SYSEX_CMD_STATE_BEGIN   0
#define MBNG_SYSEX_CMD_STATE_CONT   1
#define MBNG_SYSEX_CMD_STATE_END   2
#define MBNG_SYSEX_DISACK   0x0e
#define MBNG_SYSEX_ACK   0x0f
#define MBNG_SYSEX_DISACK_LESS_BYTES_THAN_EXP   0x01
#define MBNG_SYSEX_DISACK_MORE_BYTES_THAN_EXP   0x02
#define MBNG_SYSEX_DISACK_WRONG_CHECKSUM   0x03
#define MBNG_SYSEX_DISACK_BS_NOT_AVAILABLE   0x0a
#define MBNG_SYSEX_DISACK_INVALID_COMMAND   0x0c

Functions

s32 MBNG_SYSEX_Init (u32 mode)
s32 MBNG_SYSEX_SendAck (mios32_midi_port_t port, u8 ack_code, u8 ack_arg)
s32 MBNG_SYSEX_TimeOut (mios32_midi_port_t port)
s32 MBNG_SYSEX_Parser (mios32_midi_port_t port, u8 midi_in)

Detailed Description

SysEx Parser to access decicated MIDIbox NG functions (not really used yet)


Define Documentation

#define MBNG_SYSEX_ACK   0x0f
#define MBNG_SYSEX_CMD_STATE_BEGIN   0

Include files local definitions

#define MBNG_SYSEX_CMD_STATE_CONT   1
#define MBNG_SYSEX_CMD_STATE_END   2
#define MBNG_SYSEX_DISACK   0x0e
#define MBNG_SYSEX_DISACK_BS_NOT_AVAILABLE   0x0a
#define MBNG_SYSEX_DISACK_INVALID_COMMAND   0x0c
#define MBNG_SYSEX_DISACK_LESS_BYTES_THAN_EXP   0x01
#define MBNG_SYSEX_DISACK_MORE_BYTES_THAN_EXP   0x02
#define MBNG_SYSEX_DISACK_WRONG_CHECKSUM   0x03

Function Documentation

s32 MBNG_SYSEX_Init ( u32  mode  ) 

local variables This function initializes the SysEx handler

s32 MBNG_SYSEX_Parser ( mios32_midi_port_t  port,
u8  midi_in 
)

This function parses an incoming sysex stream for SysEx messages

s32 MBNG_SYSEX_SendAck ( mios32_midi_port_t  port,
u8  ack_code,
u8  ack_arg 
)

This function sends a SysEx acknowledge to notify the user about the received command expects acknowledge code (e.g. 0x0f for good, 0x0e for error) and additional argument

Here is the call graph for this function:

s32 MBNG_SYSEX_TimeOut ( mios32_midi_port_t  port  ) 

This function is called from NOTIFY_MIDI_TimeOut() in app.c if the MIDI parser runs into timeout


Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1