![]() |
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. | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
| 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. |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x2C | , |
| SceKernelMotionDeviceInfo | |||
| ) |
| 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.
| [out] | info | - Receives the complete identity record; must not be NULL. |
| 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.