vitasdk
Documentation of the vitasdk
gpio.h File Reference
#include <psp2kern/types.h>

Go to the source code of this file.

Enumerations

enum  SceGpioErrorCode { SCE_GPIO_ERROR_INVALID_BUS = 0x803F0100 , SCE_GPIO_ERROR_INVALID_PORT = 0x803F0101 , SCE_GPIO_ERROR_INVALID_MODE = 0x803F0102 }
 
enum  SceGpioPortMasks { SCE_GPIO_PORT_MASK_LED_GAMECARD = 1 << 6 , SCE_GPIO_PORT_MASK_LED_PS_BUTTON = 1 << 7 }
 
enum  SceGpioPortMode { SCE_GPIO_PORT_MODE_OUTPUT = 0 , SCE_GPIO_PORT_MODE_INPUT = 1 }
 

Functions

int ksceGpioPortRead (int bus, int port)
 
int ksceGpioPortSet (int bus, int port)
 
int ksceGpioPortClear (int bus, int port)
 
int ksceGpioPortReset (int bus, int port)
 
int ksceGpioSetPortMode (int bus, int port, int mode)
 
int ksceGpioGetPortMode (int bus, int port)
 
int ksceGpioSetIntrMode (int bus, int port, int intr_mode)
 
int ksceGpioGetIntrMode (int bus, int port)
 
int ksceGpioAcquireIntr (int bus, int port)
 
int ksceGpioQueryIntr (int bus, int port)