Data Structures | |
struct | _KEYSDCB |
Defines | |
#define | CHAR_CHECK_TIME 100 |
#define | CHAR_REPEAT_TIME 800 |
#define | A 1 |
#define | B 2 |
#define | C 3 |
#define | D 4 |
#define | E 5 |
Typedefs | |
typedef _KEYSDCB | KEYSDCB |
Functions | |
char | getK (void) |
char | getKey (void) |
Variables | |
NUTDEVICE | devKeys0 |
|
Constant defines that keys is connected to PORTA. Use it as a device address in InitNutDevice function. |
|
Constant defines that keys is connected to PORTB. Use it as a device address in InitNutDevice function. |
|
Constant defines that keys is connected to PORTC. Use it as a device address in InitNutDevice function. |
|
Defines key scan delay |
|
Defines key repeat time. |
|
Constant defines that keys is connected to PORTD. Use it as a device address in InitNutDevice function. |
|
Constant defines that keys is connected to PORTE. Use it as a device address in InitNutDevice function. |
|
Device control block for keys driver. Required for NUT device driver. |
|
Read key from buffer Key - it's the port value scaned by driver thread. Methods block user thread if key buffor is empty.
|
|
Read key from buffer Key - it's the port value scaned by driver thread. Methods don't block user thread if key buffer is empty.
|
|
Driver control structure. |