vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Data Structures

struct  SceKernelMotionDeviceInfo
 Cached motion-controller identity record. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x2C, SceKernelMotionDeviceInfo)
 
int ksceMotionDevGetDeviceInfo (SceKernelMotionDeviceInfo *info)
 Get the cached motion-controller identity record.
 

Variables

SceUInt16 SceKernelMotionDeviceInfo::barkley_firmware_version
 Barkley motion-controller firmware version.
 
SceUInt16 SceKernelMotionDeviceInfo::barkley_hardware_info
 Barkley hardware information.
 
SceUInt8 SceKernelMotionDeviceInfo::controller_info [0x28]
 Controller-specific device-information response data.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceMotionDevForDriver_stub




Data Structure Documentation

◆ SceKernelMotionDeviceInfo

struct SceKernelMotionDeviceInfo

Cached motion-controller identity record.

FW 3.60 always writes the complete 0x2C-byte record. The first four bytes have the same meaning in both device-information response formats. The remaining bytes come directly from the controller response. Their layout depends on the response format; this API does not interpret them.

Data Fields
SceUInt16 barkley_firmware_version Barkley motion-controller firmware version.
SceUInt16 barkley_hardware_info Barkley hardware information.
SceUInt8 controller_info[0x28] Controller-specific device-information response data.

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0x2C  ,
SceKernelMotionDeviceInfo   
)

◆ ksceMotionDevGetDeviceInfo()

int ksceMotionDevGetDeviceInfo ( SceKernelMotionDeviceInfo *  info)

Get the cached motion-controller identity record.

MotionDev holds its state spinlock with CPU interrupts suspended while copying the output. On error, info is not modified.

Parameters
[out]info- Receives the complete identity record; must not be NULL.
Returns
0 on success, 0x80360001 if info is NULL, 0x80360004 while MotionDev is in a state that does not expose device information, or 0x80360006 when its cached device-information record is unavailable.

Variable Documentation

◆ barkley_firmware_version

SceUInt16 SceKernelMotionDeviceInfo::barkley_firmware_version

Barkley motion-controller firmware version.

◆ barkley_hardware_info

SceUInt16 SceKernelMotionDeviceInfo::barkley_hardware_info

Barkley hardware information.

◆ controller_info

SceUInt8 SceKernelMotionDeviceInfo::controller_info[0x28]

Controller-specific device-information response data.