MBNG_FILE_K

Data Structures

struct  mbng_file_k_info_t

Defines

#define DEBUG_VERBOSE_LEVEL   1
#define MBNG_FILES_PATH   "/"

Functions

s32 MBNG_FILE_K_Init (u32 mode)
s32 MBNG_FILE_K_Load (char *filename)
s32 MBNG_FILE_K_Unload (void)
s32 MBNG_FILE_K_Valid (void)
s32 MBNG_FILE_K_Read (char *filename)
s32 MBNG_FILE_K_Write (char *filename)

Detailed Description

Keyboard calibration data

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_K_Init ( u32  mode  ) 

Global variables Initialisation

Here is the call graph for this function:

s32 MBNG_FILE_K_Load ( char *  filename  ) 

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

Parameters:
filename the filename which should be read
Returns:
< 0 on errors

Here is the call graph for this function:

s32 MBNG_FILE_K_Read ( char *  filename  ) 

Reads the keyboard calibration data file content

Parameters:
filename the filename which should be read
Returns:
< 0 on errors

Here is the call graph for this function:

s32 MBNG_FILE_K_Unload ( void   ) 

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

Returns:
< 0 on errors
s32 MBNG_FILE_K_Valid ( void   ) 
Returns:
1 if current keyboard file valid
0 if current keyboard file not valid
s32 MBNG_FILE_K_Write ( char *  filename  ) 

writes data into keyboard calibration file

Parameters:
filename the filename which should be written
Returns:
< 0 on errors (error codes are documented in seq_file.h)

Here is the call graph for this function:


Generated on 22 Jan 2016 for MIDIboxNG by  doxygen 1.6.1