midibox_ng_v1/src/mbng_event.c File Reference

#include <mios32.h>
#include <string.h>
#include <scs.h>
#include <ainser.h>
#include <midimon.h>
#include <seq_bpm.h>
#include <ws2812.h>
#include "app.h"
#include "tasks.h"
#include "mbng_event.h"
#include "mbng_lcd.h"
#include "mbng_din.h"
#include "mbng_dout.h"
#include "mbng_rgbled.h"
#include "mbng_matrix.h"
#include "mbng_enc.h"
#include "mbng_ain.h"
#include "mbng_ainser.h"
#include "mbng_mf.h"
#include "mbng_cv.h"
#include "mbng_kb.h"
#include "mbng_seq.h"
#include "mbng_patch.h"
#include "mbng_file_s.h"
#include "mbng_file_r.h"

Data Structures

union  sysex_runtime_var_t
union  extra_par_available_t
struct  mbng_event_pool_item_t
struct  mbng_event_pool_map_t

Defines

#define MBNG_EVENT_POOL_MAX_SIZE   (24*1024)
#define MBNG_EVENT_NRPN_RECEIVE_PORTS_MASK   0x00ff
#define MBNG_EVENT_NRPN_RECEIVE_PORTS_OFFSET   0
#define MBNG_EVENT_NRPN_RECEIVE_PORTS   8
#define MBNG_EVENT_NRPN_RECEIVE_CHANNELS   16
#define MBNG_EVENT_NRPN_SEND_PORTS_MASK   0x00f0
#define MBNG_EVENT_NRPN_SEND_PORTS_OFFSET   4
#define MBNG_EVENT_NRPN_SEND_PORTS   4
#define MBNG_EVENT_NRPN_SEND_CHANNELS   16
#define LC_METERS_NUM_PORTS   8
#define LC_METERS_NUM_ITEMS   8
#define STREAM_MAX_SIZE   128
#define MBNG_EVENT_ADD_STREAM(b)   { if( len < STREAM_MAX_SIZE ) { *stream_out = b; ++len; chk += *stream_out++; } }

Functions

s32 MBNG_EVENT_Init (u32 mode)
s32 MBNG_EVENT_Tick (void)
s32 MBNG_EVENT_PoolClear (void)
s32 MBNG_EVENT_PoolUpdate (void)
s32 MBNG_EVENT_PoolPrint (void)
s32 MBNG_EVENT_PoolItemsPrint (void)
s32 MBNG_EVENT_PoolMapsPrint (void)
s32 MBNG_EVENT_PoolNumItemsGet (void)
s32 MBNG_EVENT_PoolNumMapsGet (void)
s32 MBNG_EVENT_PoolSizeGet (void)
s32 MBNG_EVENT_PoolMaxSizeGet (void)
s32 MBNG_EVENT_MapAdd (u8 map, mbng_event_map_type_t map_type, u8 *map_values, u8 len)
s32 MBNG_EVENT_MapGet (u8 map, mbng_event_map_type_t *map_type, u8 **map_values)
s32 MBNG_EVENT_MapValue (u8 map, u16 value, u16 range, u8 reverse_interpolation)
s32 MBNG_EVENT_MapItemValueInc (u8 map, mbng_event_item_t *item, s32 incrementer, u8 auto_wrap)
s32 MBNG_EVENT_MapIxFromValue (mbng_event_map_type_t map_type, u8 *map_values, u8 map_len, u8 value)
s32 MBNG_EVENT_NumBanksGet (void)
s32 MBNG_EVENT_SelectedBankGet (void)
s32 MBNG_EVENT_SelectedBankSet (u8 new_bank)
s32 MBNG_EVENT_HwIdBankGet (u16 hw_id)
s32 MBNG_EVENT_HwIdBankSet (u16 hw_id, u8 new_bank)
s32 MBNG_EVENT_ItemNoDumpDefault (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemInit (mbng_event_item_t *item, mbng_event_item_id_t id)
s32 MBNG_EVENT_ItemGet (u32 item_ix, mbng_event_item_t *item)
s32 MBNG_EVENT_ItemAdd (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemModify (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemSearchById (mbng_event_item_id_t id, mbng_event_item_t *item, u32 *continue_ix)
s32 MBNG_EVENT_ItemSearchByHwId (mbng_event_item_id_t hw_id, mbng_event_item_t *item, u32 *continue_ix)
s32 MBNG_EVENT_ItemRetrieveValues (mbng_event_item_id_t *id, s16 *value, u8 *secondary_value, u32 *continue_ix)
s32 MBNG_EVENT_ItemCopyValueToPool (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemSetActive (mbng_event_item_t *item, u8 active)
s32 MBNG_EVENT_ItemSetNoDump (mbng_event_item_t *item, u8 no_dump)
s32 MBNG_EVENT_ItemSetLock (mbng_event_item_t *item, u8 lock)
s32 MBNG_EVENT_ItemSetMapIx (mbng_event_item_t *item, u8 map_ix)
s32 MBNG_EVENT_ItemCheckMatchingCondition (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemPrint (mbng_event_item_t *item, u8 all)
s32 MBNG_EVENT_ItemSearchByIdAndPrint (mbng_event_item_id_t id)
s32 MBNG_EVENT_ItemSearchByHwIdAndPrint (mbng_event_item_id_t hw_id)
s32 MBNG_EVENT_LCMeters_Init (void)
s32 MBNG_EVENT_MidiLearnModeSet (u8 mode)
s32 MBNG_EVENT_MidiLearnModeGet (void)
s32 MBNG_EVENT_MidiLearnStatusMsg (char *line1, char *line2)
s32 MBNG_EVENT_MidiLearnIt (mbng_event_item_id_t hw_id)
s32 MBNG_EVENT_EventLearnIdSet (mbng_event_item_id_t id)
mbng_event_item_id_t MBNG_EVENT_EventLearnIdGet (void)
s32 MBNG_EVENT_EventLearnStatusMsg (char *line1, char *line2)
s32 MBNG_EVENT_EventLearnIt (mbng_event_item_t *item, u16 prev_value)
const char * MBNG_EVENT_ItemControllerStrGet (mbng_event_item_id_t id)
mbng_event_item_id_t MBNG_EVENT_ItemIdFromControllerStrGet (char *event)
const char * MBNG_EVENT_ItemTypeStrGet (mbng_event_item_t *item)
mbng_event_type_t MBNG_EVENT_ItemTypeFromStrGet (char *event_type)
const char * MBNG_EVENT_ItemConditionStrGet (mbng_event_item_t *item)
mbng_event_if_cond_t MBNG_EVENT_ItemConditionFromStrGet (char *condition)
const char * MBNG_EVENT_ItemButtonModeStrGet (mbng_event_item_t *item)
mbng_event_button_mode_t MBNG_EVENT_ItemButtonModeFromStrGet (char *button_mode)
const char * MBNG_EVENT_ItemAinModeStrGet (mbng_event_item_t *item)
mbng_event_ain_mode_t MBNG_EVENT_ItemAinModeFromStrGet (char *ain_mode)
const char * MBNG_EVENT_ItemAinSensorModeStrGet (mbng_event_item_t *item)
mbng_event_ain_sensor_mode_t MBNG_EVENT_ItemAinSensorModeFromStrGet (char *ain_sensor_mode)
const char * MBNG_EVENT_ItemEncModeStrGet (mbng_event_enc_mode_t enc_mode)
mbng_event_enc_mode_t MBNG_EVENT_ItemEncModeFromStrGet (char *enc_mode)
const char * MBNG_EVENT_ItemEncSpeedModeStrGet (mbng_event_item_t *item)
mbng_event_enc_speed_mode_t MBNG_EVENT_ItemEncSpeedModeFromStrGet (char *enc_speed_mode)
const char * MBNG_EVENT_ItemLedMatrixPatternStrGet (mbng_event_item_t *item)
mbng_event_led_matrix_pattern_t MBNG_EVENT_ItemLedMatrixPatternFromStrGet (char *led_matrix_pattern)
const char * MBNG_EVENT_ItemNrpnFormatStrGet (mbng_event_item_t *item)
mbng_event_nrpn_format_t MBNG_EVENT_ItemNrpnFormatFromStrGet (char *nrpn_format)
const char * MBNG_EVENT_ItemSysExVarStrGet (mbng_event_item_t *item, u8 stream_pos)
mbng_event_sysex_var_t MBNG_EVENT_ItemSysExVarFromStrGet (char *sysex_var)
const char * MBNG_EVENT_ItemMetaTypeStrGet (mbng_event_meta_type_t meta_type)
mbng_event_meta_type_t MBNG_EVENT_ItemMetaTypeFromStrGet (char *meta_type)
u8 MBNG_EVENT_ItemMetaNumBytesGet (mbng_event_meta_type_t meta_type)
s32 MBNG_EVENT_SendOptimizedNRPN (mios32_midi_port_t port, mios32_midi_chn_t chn, u16 nrpn_address, u16 nrpn_value, u8 msb_only)
s32 MBNG_EVENT_SendSysExStream (mios32_midi_port_t port, mbng_event_item_t *item)
s32 MBNG_EVENT_ExecMeta (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemSend (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemSendVirtual (mbng_event_item_t *item, mbng_event_item_id_t send_id)
s32 MBNG_EVENT_ItemReceive (mbng_event_item_t *item, u16 value, u8 from_midi, u8 fwd_enabled)
s32 MBNG_EVENT_ItemForward (mbng_event_item_t *item)
s32 MBNG_EVENT_ItemForwardToRadioGroup (mbng_event_item_t *item, u8 radio_group)
s32 MBNG_EVENT_NotifySendValue (mbng_event_item_t *item)
s32 MBNG_EVENT_Refresh (void)
s32 MBNG_EVENT_UpdateLCD (u8 force)
s32 MBNG_EVENT_Dump (void)
s32 MBNG_EVENT_MIDI_NotifyPackage (mios32_midi_port_t port, mios32_midi_package_t midi_package)
s32 MBNG_EVENT_ReceiveSysEx (mios32_midi_port_t port, u8 midi_in)

Variables

mbng_event_item_id_t last_event_item_id

Define Documentation

#define MBNG_EVENT_ADD_STREAM (  )     { if( len < STREAM_MAX_SIZE ) { *stream_out = b; ++len; chk += *stream_out++; } }
#define STREAM_MAX_SIZE   128

Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1