Microchip® Advanced Software Framework

keyboard.h File Reference

Keyboard driver.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

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
}
 
enum  key_state_tag {
  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(), and key_state_read().

#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 action.

Enumerator
KEY_PRESSED 

Button is pressed.

KEY_RELEASED 

Button is released.