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
12extern "C" {
13#endif
14
20
25
30
31int ksceGpioPortRead(int bus, int port);
32int ksceGpioPortSet(int bus, int port);
33int ksceGpioPortClear(int bus, int port);
34int ksceGpioPortReset(int bus, int port);
35int ksceGpioSetPortMode(int bus, int port, int mode);
36int ksceGpioGetPortMode(int bus, int port);
37int ksceGpioSetIntrMode(int bus, int port, int intr_mode);
38int ksceGpioGetIntrMode(int bus, int port);
39int ksceGpioAcquireIntr(int bus, int port);
40int 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