9#ifndef __PSPUSBACC_KERNEL_H__
10#define __PSPUSBACC_KERNEL_H__
uint8_t u8
Definition psptypes.h:38
uint16_t u16
Definition psptypes.h:39
int sceUsbAccIntrInReq(struct UsbdDeviceReq *req)
Queues a packet to be sent from the PSP to the accessory on the interrupt endpoint (EP 0x81).
PspUsbAccType
Accessory type bits used with sceUsbAccRegisterType / sceUsbAccUnregisterType.
Definition pspusbacc_kernel.h:21
@ PSP_USBACC_TYPE_GPS
GPS receiver.
Definition pspusbacc_kernel.h:27
@ PSP_USBACC_TYPE_CAMERA
Camera.
Definition pspusbacc_kernel.h:25
@ PSP_USBACC_TYPE_DMB
DMB / 1Seg TV tuner.
Definition pspusbacc_kernel.h:29
@ PSP_USBACC_TYPE_MIC
Microphone.
Definition pspusbacc_kernel.h:23
int sceUsbAccUnregisterType(u16 type)
Unregisters accessory type(s) previously registered with sceUsbAccRegisterType.
struct SceUsbAccPacket SceUsbAccPacket
Command packet sent from the PSP to an accessory by sceUsbAccIntrInReq.
int sceUsbAccRegisterType(u16 type)
Registers the accessory type(s) the caller handles (PspUsbAccType bits).
Command packet sent from the PSP to an accessory by sceUsbAccIntrInReq.
Definition pspusbacc_kernel.h:36
u8 cmd
Command / opcode (accessory specific)
Definition pspusbacc_kernel.h:40
u8 len
Payload length in bytes, must be <= 60.
Definition pspusbacc_kernel.h:42
u16 type
Accessory type (PspUsbAccType)
Definition pspusbacc_kernel.h:38
u8 data[60]
Payload.
Definition pspusbacc_kernel.h:44
USB device request, used by sceUsbbdReqSend and sceUsbbdReqRecv.
Definition pspusbbus.h:217