mikroSDK Reference Manual

Data Structures

struct  TU_ATTR_PACKED
 AUDIO Channel Cluster Descriptor (4.1) More...
 

Macros

#define GAMEPAD_BUTTON_A   GAMEPAD_BUTTON_0
 
#define GAMEPAD_BUTTON_SOUTH   GAMEPAD_BUTTON_0
 
#define GAMEPAD_BUTTON_B   GAMEPAD_BUTTON_1
 
#define GAMEPAD_BUTTON_EAST   GAMEPAD_BUTTON_1
 
#define GAMEPAD_BUTTON_C   GAMEPAD_BUTTON_2
 
#define GAMEPAD_BUTTON_X   GAMEPAD_BUTTON_3
 
#define GAMEPAD_BUTTON_NORTH   GAMEPAD_BUTTON_3
 
#define GAMEPAD_BUTTON_Y   GAMEPAD_BUTTON_4
 
#define GAMEPAD_BUTTON_WEST   GAMEPAD_BUTTON_4
 
#define GAMEPAD_BUTTON_Z   GAMEPAD_BUTTON_5
 
#define GAMEPAD_BUTTON_TL   GAMEPAD_BUTTON_6
 
#define GAMEPAD_BUTTON_TR   GAMEPAD_BUTTON_7
 
#define GAMEPAD_BUTTON_TL2   GAMEPAD_BUTTON_8
 
#define GAMEPAD_BUTTON_TR2   GAMEPAD_BUTTON_9
 
#define GAMEPAD_BUTTON_SELECT   GAMEPAD_BUTTON_10
 
#define GAMEPAD_BUTTON_START   GAMEPAD_BUTTON_11
 
#define GAMEPAD_BUTTON_MODE   GAMEPAD_BUTTON_12
 
#define GAMEPAD_BUTTON_THUMBL   GAMEPAD_BUTTON_13
 
#define GAMEPAD_BUTTON_THUMBR   GAMEPAD_BUTTON_14
 

Typedefs

typedef struct TU_ATTR_PACKED hid_gamepad_report_t
 HID Gamepad Protocol Report.
 

Enumerations

enum  hid_gamepad_button_bm_t {
  GAMEPAD_BUTTON_0 = TU_BIT(0) , GAMEPAD_BUTTON_1 = TU_BIT(1) , GAMEPAD_BUTTON_2 = TU_BIT(2) , GAMEPAD_BUTTON_3 = TU_BIT(3) ,
  GAMEPAD_BUTTON_4 = TU_BIT(4) , GAMEPAD_BUTTON_5 = TU_BIT(5) , GAMEPAD_BUTTON_6 = TU_BIT(6) , GAMEPAD_BUTTON_7 = TU_BIT(7) ,
  GAMEPAD_BUTTON_8 = TU_BIT(8) , GAMEPAD_BUTTON_9 = TU_BIT(9) , GAMEPAD_BUTTON_10 = TU_BIT(10) , GAMEPAD_BUTTON_11 = TU_BIT(11) ,
  GAMEPAD_BUTTON_12 = TU_BIT(12) , GAMEPAD_BUTTON_13 = TU_BIT(13) , GAMEPAD_BUTTON_14 = TU_BIT(14) , GAMEPAD_BUTTON_15 = TU_BIT(15) ,
  GAMEPAD_BUTTON_16 = TU_BIT(16) , GAMEPAD_BUTTON_17 = TU_BIT(17) , GAMEPAD_BUTTON_18 = TU_BIT(18) , GAMEPAD_BUTTON_19 = TU_BIT(19) ,
  GAMEPAD_BUTTON_20 = TU_BIT(20) , GAMEPAD_BUTTON_21 = TU_BIT(21) , GAMEPAD_BUTTON_22 = TU_BIT(22) , GAMEPAD_BUTTON_23 = TU_BIT(23) ,
  GAMEPAD_BUTTON_24 = TU_BIT(24) , GAMEPAD_BUTTON_25 = TU_BIT(25) , GAMEPAD_BUTTON_26 = TU_BIT(26) , GAMEPAD_BUTTON_27 = TU_BIT(27) ,
  GAMEPAD_BUTTON_28 = TU_BIT(28) , GAMEPAD_BUTTON_29 = TU_BIT(29) , GAMEPAD_BUTTON_30 = TU_BIT(30) , GAMEPAD_BUTTON_31 = TU_BIT(31)
}
 Standard Gamepad Buttons Bitmap.
 
enum  hid_gamepad_hat_t {
  GAMEPAD_HAT_CENTERED = 0 , GAMEPAD_HAT_UP = 1 , GAMEPAD_HAT_UP_RIGHT = 2 , GAMEPAD_HAT_RIGHT = 3 ,
  GAMEPAD_HAT_DOWN_RIGHT = 4 , GAMEPAD_HAT_DOWN = 5 , GAMEPAD_HAT_DOWN_LEFT = 6 , GAMEPAD_HAT_LEFT = 7 ,
  GAMEPAD_HAT_UP_LEFT = 8
}
 Standard Gamepad HAT/DPAD Buttons (from Linux input event codes) More...
 

Macro Definition Documentation

◆ GAMEPAD_BUTTON_A

#define GAMEPAD_BUTTON_A   GAMEPAD_BUTTON_0

Standard Gamepad Buttons Naming from Linux input event codes https://github.com/torvalds/linux/blob/master/include/uapi/linux/input-event-codes.h

Enumeration Type Documentation

◆ hid_gamepad_hat_t

Enumerator
GAMEPAD_HAT_CENTERED 

DPAD_CENTERED.

GAMEPAD_HAT_UP 

DPAD_UP.

GAMEPAD_HAT_UP_RIGHT 

DPAD_UP_RIGHT.

GAMEPAD_HAT_RIGHT 

DPAD_RIGHT.

GAMEPAD_HAT_DOWN_RIGHT 

DPAD_DOWN_RIGHT.

GAMEPAD_HAT_DOWN 

DPAD_DOWN.

GAMEPAD_HAT_DOWN_LEFT 

DPAD_DOWN_LEFT.

GAMEPAD_HAT_LEFT 

DPAD_LEFT.

GAMEPAD_HAT_UP_LEFT 

DPAD_UP_LEFT.