Atmel Software Framework

xmega/applications/xmega_a3bu_xplained_demo/keyboard.h File Reference

Keyboard driver.

Copyright (c) 2014-2015 Atmel Corporation. All rights reserved.

#include "gpio.h"

Data Structures

struct  keyboard_event
 Container for keycode and related event. More...
 

Macros

Keyboard definitions
#define KEYBOARD_NO_KEY   0
 
#define KEYBOARD_UP   38
 
#define KEYBOARD_UP_MASK   2
 
#define KEYBOARD_DOWN   40
 
#define KEYBOARD_DOWN_MASK   4
 
#define KEYBOARD_ENTER   13
 
#define KEYBOARD_ENTER_MASK   1
 
#define KEYBOARD_BACK   8
 
#define KEYBOARD_BACK_MASK   8
 

Typedefs

typedef uint8_t keycode_t
 

Enumerations

enum  keyboard_event_type {
  KEYBOARD_NO_EVENT,
  KEYBOARD_PRESS,
  KEYBOARD_RELEASE,
  KEYBOARD_NO_EVENT,
  KEYBOARD_PRESS,
  KEYBOARD_RELEASE
}
 Definition of the different keyboard event types. More...
 

Functions

void keyboard_get_key_state (struct keyboard_event *key)
 Check the status of the keyboard. More...
 

#define KEYBOARD_BACK   8
#define KEYBOARD_BACK_MASK   8
#define KEYBOARD_DOWN   40
#define KEYBOARD_DOWN_MASK   4
#define KEYBOARD_ENTER   13
#define KEYBOARD_ENTER_MASK   1
#define KEYBOARD_NO_KEY   0
#define KEYBOARD_UP   38
#define KEYBOARD_UP_MASK   2

typedef uint8_t keycode_t

Definition of the different keyboard event types.

Enumerator
KEYBOARD_NO_EVENT 
KEYBOARD_PRESS 
KEYBOARD_RELEASE 
KEYBOARD_NO_EVENT 
KEYBOARD_PRESS 
KEYBOARD_RELEASE