Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
joystick_types.h File Reference
#include "types.h"

Go to the source code of this file.

Macros

#define JOY_ACTION_ALL   (u8)(-1)
 

Typedefs

typedef void(* JOYSTICK_Function) (void)
 Joystick function handler function pointer.
 

Enumerations

enum  JOYSTICK_Error { JOY_ERR_OK = 0 , JOY_ERR_RIT_UNINIT }
 
enum  JOYSTICK_Action {
  JOY_ACTION_SEL = 0 , JOY_ACTION_DOWN , JOY_ACTION_LEFT , JOY_ACTION_RIGHT ,
  JOY_ACTION_UP , JOY_ACTION_COUNT
}
 

Macro Definition Documentation

◆ JOY_ACTION_ALL

#define JOY_ACTION_ALL   (u8)(-1)

Definition at line 30 of file joystick_types.h.

Typedef Documentation

◆ JOYSTICK_Function

typedef void(* JOYSTICK_Function) (void)

Joystick function handler function pointer.

Definition at line 16 of file joystick_types.h.

Enumeration Type Documentation

◆ JOYSTICK_Action

Enumerator
JOY_ACTION_SEL 
JOY_ACTION_DOWN 
JOY_ACTION_LEFT 
JOY_ACTION_RIGHT 
JOY_ACTION_UP 
JOY_ACTION_COUNT 

Definition at line 20 of file joystick_types.h.

21{
22 JOY_ACTION_SEL = 0, // GPIO 1.25
26 JOY_ACTION_UP, // GPIO 1.29
JOYSTICK_Action
@ JOY_ACTION_SEL
@ JOY_ACTION_COUNT
@ JOY_ACTION_RIGHT
@ JOY_ACTION_LEFT
@ JOY_ACTION_UP
@ JOY_ACTION_DOWN

◆ JOYSTICK_Error

Enumerator
JOY_ERR_OK 

No error.

JOY_ERR_RIT_UNINIT 

During initialization, POLL_WITH_RIT was requested but the RIT was not enabled.

Definition at line 6 of file joystick_types.h.

7{
9 JOY_ERR_OK = 0,
JOYSTICK_Error
@ JOY_ERR_OK
No error.
@ JOY_ERR_RIT_UNINIT
During initialization, POLL_WITH_RIT was requested but the RIT was not enabled.