MBNG_FILE_K
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 "/" |
Function Documentation
s32 MBNG_FILE_K_Init |
( |
u32 |
mode |
) |
|
Global variables Initialisation
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
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
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)