Defines | |
| #define | DEBUG_MSG MIOS32_MIDI_SendDebugMessage |
| #define | MATRIX_NUM_ROWS 16 |
| #define | KEYBOARD_NUM_PINS (16*MATRIX_NUM_ROWS) |
| #define | FANTOM_XR_VARIANT 0 |
Functions | |
| s32 | KEYBOARD_Init (u32 mode) |
| s32 | KEYBOARD_ConnectedNumSet (u8 num) |
| u8 | KEYBOARD_ConnectedNumGet (void) |
| void | KEYBOARD_SRIO_ServicePrepare (void) |
| void | KEYBOARD_SRIO_ServiceFinish (void) |
| void | KEYBOARD_Periodic_1mS (void) |
| void | KEYBOARD_AIN_NotifyChange (u32 pin, u32 pin_value) |
| s32 | KEYBOARD_TerminalHelp (void *_output_function) |
| s32 | KEYBOARD_TerminalParseLine (char *input, void *_output_function) |
| s32 | KEYBOARD_TerminalPrintConfig (int kb, void *_output_function) |
| s32 | KEYBOARD_TerminalPrintDelays (int kb, void *_output_function) |
Variables | |
| keyboard_config_t | keyboard_config [KEYBOARD_NUM] |
Keyboard Handler
| #define DEBUG_MSG MIOS32_MIDI_SendDebugMessage |
| #define FANTOM_XR_VARIANT 0 |
| #define KEYBOARD_NUM_PINS (16*MATRIX_NUM_ROWS) |
| #define MATRIX_NUM_ROWS 16 |
This function should be called from AIN_NotifyChange in app.c
In addition it should be called periodically from a task to handle the reduced bandwidth function.
See also apps/controllers/midibox_kb_v1/src/app.c
// update AINs with current value // the keyboard driver will only send events on value changes { int pin; for(pin=0; pin<8; ++pin) { KEYBOARD_AIN_NotifyChange(pin, MIOS32_AIN_PinGet(pin)); } }

| u8 KEYBOARD_ConnectedNumGet | ( | void | ) |
Returns number of connected keyboards
Initialize the keyboard handler
| mode | == 0: init configuration + runtime variables | |
| mode | > 0: init only runtime variables |
| void KEYBOARD_Periodic_1mS | ( | void | ) |
This function should be called periodically (each mS) to check for pin changes

| void KEYBOARD_SRIO_ServiceFinish | ( | void | ) |
This hook is called after the shift register chain has been scanned

| void KEYBOARD_SRIO_ServicePrepare | ( | void | ) |
This hook is called before the shift register chain is scanned

| s32 KEYBOARD_TerminalHelp | ( | void * | _output_function | ) |
Returns help page for implemented terminal commands of this module

| s32 KEYBOARD_TerminalParseLine | ( | char * | input, | |
| void * | _output_function | |||
| ) |
Parser for a complete line

| s32 KEYBOARD_TerminalPrintConfig | ( | int | kb, | |
| void * | _output_function | |||
| ) |
Keyboard Configuration (can also be called from external)
| s32 KEYBOARD_TerminalPrintDelays | ( | int | kb, | |
| void * | _output_function | |||
| ) |
Keyboard Configuration (can also be called from external)
| keyboard_config_t keyboard_config[KEYBOARD_NUM] |
1.6.1