vitasdk
Documentation of the vitasdk
gpio.h
Go to the documentation of this file.
1 
6 #ifndef _PSP2KERN_LOWIO_GPIO_H_
7 #define _PSP2KERN_LOWIO_GPIO_H_
8 
9 #include <psp2kern/types.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef enum SceGpioErrorCode {
18  SCE_GPIO_ERROR_INVALID_MODE = 0x803F0102
20 
21 typedef enum SceGpioPortMasks {
25 
26 typedef enum SceGpioPortMode {
30 
31 int ksceGpioPortRead(int bus, int port);
32 int ksceGpioPortSet(int bus, int port);
33 int ksceGpioPortClear(int bus, int port);
34 int ksceGpioPortReset(int bus, int port);
35 int ksceGpioSetPortMode(int bus, int port, int mode);
36 int ksceGpioGetPortMode(int bus, int port);
37 int ksceGpioSetIntrMode(int bus, int port, int intr_mode);
38 int ksceGpioGetIntrMode(int bus, int port);
39 int ksceGpioAcquireIntr(int bus, int port);
40 int ksceGpioQueryIntr(int bus, int port);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* _PSP2KERN_LOWIO_GPIO_H_ */
47 
int ksceGpioPortSet(int bus, int port)
SceGpioPortMasks
Definition: gpio.h:21
int ksceGpioSetPortMode(int bus, int port, int mode)
int ksceGpioPortReset(int bus, int port)
int ksceGpioGetPortMode(int bus, int port)
int ksceGpioPortClear(int bus, int port)
int ksceGpioPortRead(int bus, int port)
int ksceGpioAcquireIntr(int bus, int port)
SceGpioPortMode
Definition: gpio.h:26
int ksceGpioGetIntrMode(int bus, int port)
int ksceGpioQueryIntr(int bus, int port)
SceGpioErrorCode
Definition: gpio.h:15
int ksceGpioSetIntrMode(int bus, int port, int intr_mode)
@ SCE_GPIO_PORT_MASK_LED_GAMECARD
Definition: gpio.h:22
@ SCE_GPIO_PORT_MASK_LED_PS_BUTTON
Definition: gpio.h:23
@ SCE_GPIO_PORT_MODE_OUTPUT
Definition: gpio.h:27
@ SCE_GPIO_PORT_MODE_INPUT
Definition: gpio.h:28
@ SCE_GPIO_ERROR_INVALID_PORT
Definition: gpio.h:17
@ SCE_GPIO_ERROR_INVALID_MODE
Definition: gpio.h:18
@ SCE_GPIO_ERROR_INVALID_BUS
Definition: gpio.h:16