MBNG_FILE_C

Data Structures

struct  mbng_file_c_info_t

Defines

#define DEBUG_VERBOSE_LEVEL   1
#define MBNG_FILES_PATH   "/"

Functions

s32 MBNG_FILE_C_Init (u32 mode)
s32 MBNG_FILE_C_Load (char *filename)
s32 MBNG_FILE_C_Unload (void)
s32 MBNG_FILE_C_Valid (void)
s32 parseEvent (u32 line, char *cmd, char *brkt)
s32 parseMap (u32 line, char *cmd, char *brkt)
s32 parseSysExVar (u32 line, char *cmd, char *brkt)
s32 parseEnc (u32 line, char *cmd, char *brkt)
s32 parseDinMatrix (u32 line, char *cmd, char *brkt)
s32 parseDoutMatrix (u32 line, char *cmd, char *brkt)
s32 parseKeyboard (u32 line, char *cmd, char *brkt)
s32 parseLedMatrixPattern (u32 line, char *cmd, char *brkt)
s32 parseLcMeterPattern (u32 line, char *cmd, char *brkt)
s32 parseAin (u32 line, char *cmd, char *brkt)
s32 parseAinSer (u32 line, char *cmd, char *brkt)
s32 parseMf (u32 line, char *cmd, char *brkt)
s32 parseAout (u32 line, char *cmd, char *brkt)
s32 parseDio (u32 line, char *cmd, char *brkt)
s32 parseScs (u32 line, char *cmd, char *brkt)
s32 parseSrio (u32 line, char *cmd, char *brkt)
s32 parseRouter (u32 line, char *cmd, char *brkt)
s32 parseEth (u32 line, char *cmd, char *brkt)
s32 parseOsc (u32 line, char *cmd, char *brkt)
s32 MBNG_FILE_C_Parser (u32 line, char *line_buffer, u8 *got_first_event_item)
s32 MBNG_FILE_C_Read (char *filename)
s32 MBNG_FILE_C_Write (char *filename)
s32 MBNG_FILE_C_Debug (void)

Variables

char mbng_file_c_config_name [MBNG_FILE_C_FILENAME_LEN+1]

Detailed Description

Config File access functions

NOTE: before accessing the SD Card, the upper level function should synchronize with the SD Card semaphore! MUTEX_SDCARD_TAKE; // to take the semaphore MUTEX_SDCARD_GIVE; // to release the semaphore


Define Documentation

#define DEBUG_VERBOSE_LEVEL   1

Include files for optional debugging messages via DEBUG_MSG (defined in mios32_config.h)

#define MBNG_FILES_PATH   "/"

Local definitions


Function Documentation

s32 MBNG_FILE_C_Debug ( void   ) 

sends config data to debug terminal

Returns:
< 0 on errors
s32 MBNG_FILE_C_Init ( u32  mode  ) 

Initialisation

Here is the call graph for this function:

s32 MBNG_FILE_C_Load ( char *  filename  ) 

Loads patch file Called from MBNG_FILE_CheckSDCard() when the SD card has been connected

Returns:
< 0 on errors

Here is the call graph for this function:

s32 MBNG_FILE_C_Parser ( u32  line,
char *  line_buffer,
u8 got_first_event_item 
)

Parses a .NGC command line

Returns:
< 0 on errors (error codes are documented in mbng_file.h)

Here is the call graph for this function:

s32 MBNG_FILE_C_Read ( char *  filename  ) 

reads the config file content (again)

Returns:
< 0 on errors (error codes are documented in mbng_file.h)

Here is the call graph for this function:

s32 MBNG_FILE_C_Unload ( void   ) 

Unloads patch file Called from MBNG_FILE_CheckSDCard() when the SD card has been disconnected

Returns:
< 0 on errors
s32 MBNG_FILE_C_Valid ( void   ) 

1 if current patch file valid 0 if current patch file not valid

s32 MBNG_FILE_C_Write ( char *  filename  ) 

writes data into config file

Returns:
< 0 on errors (error codes are documented in seq_file.h)

Here is the call graph for this function:

s32 parseAin ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses AIN definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseAinSer ( u32  line,
char *  cmd,
char *  brkt 
)

Here is the call graph for this function:

s32 parseAout ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses AOUT definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseDinMatrix ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses DIN_MATRIX definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseDio ( u32  line,
char *  cmd,
char *  brkt 
)

Here is the call graph for this function:

s32 parseDoutMatrix ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses DOUT_MATRIX definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseEnc ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses ENC definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseEth ( u32  line,
char *  cmd,
char *  brkt 
)

function which parses ETH definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseEvent ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses a EVENT command and adds it to the pool

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseKeyboard ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses KEYBOARD definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseLcMeterPattern ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses LC_METER_PATTERN definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseLedMatrixPattern ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses LED_MATRIX_PATTERN definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseMap ( u32  line,
char *  cmd,
char *  brkt 
)

Here is the call graph for this function:

s32 parseMf ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses MF definitions

Returns:
>= 0 if command is valid
<0 if command is invalid
s32 parseOsc ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses OSC definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseRouter ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses ROUTER definitions

Returns:
>= 0 if command is valid
<0 if command is invalid
s32 parseScs ( u32  line,
char *  cmd,
char *  brkt 
)

help function which parses SCS definitions

Returns:
>= 0 if command is valid
<0 if command is invalid

Here is the call graph for this function:

s32 parseSrio ( u32  line,
char *  cmd,
char *  brkt 
)

Here is the call graph for this function:

s32 parseSysExVar ( u32  line,
char *  cmd,
char *  brkt 
)

Here is the call graph for this function:


Variable Documentation

char mbng_file_c_config_name[MBNG_FILE_C_FILENAME_LEN+1]

Global variables


Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1