PSPSDK 2026-11-05
Unofficial static mirror · snapshot 2026-11-05 · upstream documentation
Loading...
Searching...
No Matches
pspusbacc_kernel.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspusbacc_kernel.h - Prototypes for the sceUsbAcc_internal library
7 *
8 */
9#ifndef __PSPUSBACC_KERNEL_H__
10#define __PSPUSBACC_KERNEL_H__
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#include <psptypes.h>
17#include <pspusbbus.h>
18#include <pspusbacc.h>
19
31
46
60
73
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
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