dreamcast_maple.h File Reference

Back to the index.

Classes | Macros | Typedefs | Variables
dreamcast_maple.h File Reference

Go to the source code of this file.

Classes

struct  maple_devinfo
 
struct  maple_response
 

Macros

#define MAPLE_RESPONSE_LCDERR   (-6)
 
#define MAPLE_RESPONSE_FILEERR   (-5)
 
#define MAPLE_RESPONSE_AGAIN   (-4) /* request should be retransmitted */
 
#define MAPLE_RESPONSE_BADCMD   (-3)
 
#define MAPLE_RESPONSE_BADFUNC   (-2)
 
#define MAPLE_RESPONSE_NONE   (-1) /* unit didn't respond at all */
 
#define MAPLE_COMMAND_DEVINFO   1
 
#define MAPLE_COMMAND_ALLINFO   2
 
#define MAPLE_COMMAND_RESET   3
 
#define MAPLE_COMMAND_KILL   4
 
#define MAPLE_RESPONSE_DEVINFO   5
 
#define MAPLE_RESPONSE_ALLINFO   6
 
#define MAPLE_RESPONSE_OK   7
 
#define MAPLE_RESPONSE_DATATRF   8
 
#define MAPLE_COMMAND_GETCOND   9
 
#define MAPLE_COMMAND_GETMINFO   10
 
#define MAPLE_COMMAND_BREAD   11
 
#define MAPLE_COMMAND_BWRITE   12
 
#define MAPLE_COMMAND_GETLASTERR   13
 
#define MAPLE_COMMAND_SETCOND   14
 
#define MAPLE_FN_CONTROLLER   0
 
#define MAPLE_FN_MEMCARD   1
 
#define MAPLE_FN_LCD   2
 
#define MAPLE_FN_CLOCK   3
 
#define MAPLE_FN_MICROPHONE   4
 
#define MAPLE_FN_ARGUN   5
 
#define MAPLE_FN_KEYBOARD   6
 
#define MAPLE_FN_LIGHTGUN   7
 
#define MAPLE_FN_PURUPURU   8
 
#define MAPLE_FN_MOUSE   9
 
#define MAPLE_FUNC(fn)   (1 << (fn))
 
#define MAPLE_CONN_TOP   0 /* connector is to the top */
 
#define MAPLE_CONN_BOTTOM   1 /* connector is to the bottom */
 
#define MAPLE_FLAG_PERIODIC   1
 
#define MAPLE_FLAG_CMD_PERIODIC_TIMING   2
 

Typedefs

typedef int8_t maple_response_t
 

Variables

struct maple_devinfo __attribute__
 

Macro Definition Documentation

◆ MAPLE_COMMAND_ALLINFO

#define MAPLE_COMMAND_ALLINFO   2

Definition at line 87 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_BREAD

#define MAPLE_COMMAND_BREAD   11

Definition at line 96 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_BWRITE

#define MAPLE_COMMAND_BWRITE   12

Definition at line 97 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_DEVINFO

#define MAPLE_COMMAND_DEVINFO   1

Definition at line 86 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_GETCOND

#define MAPLE_COMMAND_GETCOND   9

Definition at line 94 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_GETLASTERR

#define MAPLE_COMMAND_GETLASTERR   13

Definition at line 98 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_GETMINFO

#define MAPLE_COMMAND_GETMINFO   10

Definition at line 95 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_KILL

#define MAPLE_COMMAND_KILL   4

Definition at line 89 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_RESET

#define MAPLE_COMMAND_RESET   3

Definition at line 88 of file dreamcast_maple.h.

◆ MAPLE_COMMAND_SETCOND

#define MAPLE_COMMAND_SETCOND   14

Definition at line 99 of file dreamcast_maple.h.

◆ MAPLE_CONN_BOTTOM

#define MAPLE_CONN_BOTTOM   1 /* connector is to the bottom */

Definition at line 127 of file dreamcast_maple.h.

◆ MAPLE_CONN_TOP

#define MAPLE_CONN_TOP   0 /* connector is to the top */

Definition at line 126 of file dreamcast_maple.h.

◆ MAPLE_FLAG_CMD_PERIODIC_TIMING

#define MAPLE_FLAG_CMD_PERIODIC_TIMING   2

Definition at line 135 of file dreamcast_maple.h.

◆ MAPLE_FLAG_PERIODIC

#define MAPLE_FLAG_PERIODIC   1

Definition at line 134 of file dreamcast_maple.h.

◆ MAPLE_FN_ARGUN

#define MAPLE_FN_ARGUN   5

Definition at line 107 of file dreamcast_maple.h.

◆ MAPLE_FN_CLOCK

#define MAPLE_FN_CLOCK   3

Definition at line 105 of file dreamcast_maple.h.

◆ MAPLE_FN_CONTROLLER

#define MAPLE_FN_CONTROLLER   0

Definition at line 102 of file dreamcast_maple.h.

◆ MAPLE_FN_KEYBOARD

#define MAPLE_FN_KEYBOARD   6

Definition at line 108 of file dreamcast_maple.h.

◆ MAPLE_FN_LCD

#define MAPLE_FN_LCD   2

Definition at line 104 of file dreamcast_maple.h.

◆ MAPLE_FN_LIGHTGUN

#define MAPLE_FN_LIGHTGUN   7

Definition at line 109 of file dreamcast_maple.h.

◆ MAPLE_FN_MEMCARD

#define MAPLE_FN_MEMCARD   1

Definition at line 103 of file dreamcast_maple.h.

◆ MAPLE_FN_MICROPHONE

#define MAPLE_FN_MICROPHONE   4

Definition at line 106 of file dreamcast_maple.h.

◆ MAPLE_FN_MOUSE

#define MAPLE_FN_MOUSE   9

Definition at line 111 of file dreamcast_maple.h.

◆ MAPLE_FN_PURUPURU

#define MAPLE_FN_PURUPURU   8

Definition at line 110 of file dreamcast_maple.h.

◆ MAPLE_FUNC

#define MAPLE_FUNC (   fn)    (1 << (fn))

Definition at line 113 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_AGAIN

#define MAPLE_RESPONSE_AGAIN   (-4) /* request should be retransmitted */

Definition at line 82 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_ALLINFO

#define MAPLE_RESPONSE_ALLINFO   6

Definition at line 91 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_BADCMD

#define MAPLE_RESPONSE_BADCMD   (-3)

Definition at line 83 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_BADFUNC

#define MAPLE_RESPONSE_BADFUNC   (-2)

Definition at line 84 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_DATATRF

#define MAPLE_RESPONSE_DATATRF   8

Definition at line 93 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_DEVINFO

#define MAPLE_RESPONSE_DEVINFO   5

Definition at line 90 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_FILEERR

#define MAPLE_RESPONSE_FILEERR   (-5)

Definition at line 81 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_LCDERR

#define MAPLE_RESPONSE_LCDERR   (-6)

Definition at line 80 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_NONE

#define MAPLE_RESPONSE_NONE   (-1) /* unit didn't respond at all */

Definition at line 85 of file dreamcast_maple.h.

◆ MAPLE_RESPONSE_OK

#define MAPLE_RESPONSE_OK   7

Definition at line 92 of file dreamcast_maple.h.

Typedef Documentation

◆ maple_response_t

typedef int8_t maple_response_t

Definition at line 76 of file dreamcast_maple.h.

Variable Documentation

◆ __attribute__

struct pci_vpd __attribute__

Generated on Tue Mar 24 2020 14:04:48 for GXemul by doxygen 1.8.17