Atmel Software Framework

thirdparty/wireless/avr2102_rf4control/apps/zrc/button_ctr/keyboard.h File Reference

Keyboard driver.

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

#include "xmega_a3bu_xplained.h"

Macros

#define COLD_RESET_KEY   SELECT_KEY
 
#define FUNCTION1_KEY   TARGET1_KEY
 
#define FUNCTION2_KEY   TARGET2_KEY
 
#define MAX_KEYS   3
 
#define SELECT_KEY   BUTTON_0
 
#define TARGET1_KEY   BUTTON_1
 
#define TARGET2_KEY   BUTTON_2
 

Typedefs

typedef enum key_id_tag key_id_t
 
typedef enum key_state_tag key_state_t
 Button action. More...
 

Enumerations

enum  key_id_tag {
  BUTTON_0,
  BUTTON_1,
  BUTTON_2,
  BUTTON_0,
  BUTTON_1,
  BUTTON_2,
  NO_BUTTON
}
 
enum  key_state_tag {
  KEY_PRESSED,
  KEY_RELEASED,
  KEY_PRESSED,
  KEY_RELEASED
}
 Button action. More...
 

#define COLD_RESET_KEY   SELECT_KEY

Referenced by main().

#define FUNCTION1_KEY   TARGET1_KEY

Referenced by app_task().

#define FUNCTION2_KEY   TARGET2_KEY

Referenced by app_task().

#define MAX_KEYS   3

Referenced by app_task().

#define SELECT_KEY   BUTTON_0

Referenced by app_task(), key_state_read(), and main().

#define TARGET1_KEY   BUTTON_1

Referenced by app_task(), and key_state_read().

#define TARGET2_KEY   BUTTON_2

Referenced by app_task(), and key_state_read().

typedef enum key_id_tag key_id_t
typedef enum key_state_tag key_state_t

Button action.

enum key_id_tag
Enumerator
BUTTON_0 
BUTTON_1 
BUTTON_2 
BUTTON_0 
BUTTON_1 
BUTTON_2 
NO_BUTTON 

Button action.

Enumerator
KEY_PRESSED 

Button is pressed.

KEY_RELEASED 

Button is released.

KEY_PRESSED 

Button is pressed.

KEY_RELEASED 

Button is released.