summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrapheneCt2020-10-24 00:07:54 -0400
committerReiko Asakura2020-10-24 00:07:54 -0400
commitbba6c470a64c55c80789eafdcda4ccdb5d043e1e (patch)
tree4c0e041f8ddabdd7c47cf01e3b1307910da6ce65
parentAdded ShaccCg Headers (diff)
downloadvds-libraries-bba6c470a64c55c80789eafdcda4ccdb5d043e1e.tar.gz
Add SceMotion ext and internal funcs
-rw-r--r--include/user/motion.h109
-rw-r--r--nids/360/SceDriverUser.yml11
2 files changed, 120 insertions, 0 deletions
diff --git a/include/user/motion.h b/include/user/motion.h
new file mode 100644
index 0000000..61ff756
--- /dev/null
+++ b/include/user/motion.h
@@ -0,0 +1,109 @@
+#ifndef _DOLCESDK_PSP2_MOTION_H_
+#define _DOLCESDK_PSP2_MOTION_H_
+
+#include_next <motion.h>
+
+#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
+extern "C" {
+#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
+
+/* Extended functions */
+
+/*
+ * Initialize libMotion for extended use
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionInitLibraryExt(void);
+
+/*
+ * Terminate libMotion for extended use
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionTermLibraryExt(void);
+
+/*
+ * Calculate and update the new motion states
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionGetStateExt(int port, SceMotionState *motionState);
+
+/*
+ * Retrieve the status of tilt correction filter settings
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionGetTiltCorrectionExt(int port, SceBool *getValue);
+
+/*
+ * Set the tilt correction filter settings
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionSetTiltCorrectionExt(int port, SceBool setValue);
+
+/*
+ * Retrieve the status of deadband filter mode
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionGetDeadbandExt(int port, SceBool *getValue);
+
+/*
+ * Set the deadbanding filter mode
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionSetDeadbandExt(int port, SceBool setValue);
+
+/*
+ * Reset the device posture and filter settings.
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionResetExt(void);
+
+/*
+ * Begin sampling data.
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionStartSamplingExt(int port);
+
+/*
+ * Stop sampling data.
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionStopSamplingExt(int port);
+
+/* Internal functions */
+
+/*
+ * Calculate and update the new motion states
+ * @param *motionState : State Pointer to save data into
+ * @retval SCE_OK success
+ * <SCE_OK Error
+ */
+
+int sceMotionGetStateInternal(SceMotionState *motionState);
+
+#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus)
+}
+#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */
+
+#endif /* _DOLCESDK_PSP2_MOTION_H_ */
+
+
diff --git a/nids/360/SceDriverUser.yml b/nids/360/SceDriverUser.yml
index 5840698..d9d7736 100644
--- a/nids/360/SceDriverUser.yml
+++ b/nids/360/SceDriverUser.yml
@@ -178,22 +178,33 @@ modules:
sceMotionGetAngleThreshold: 0x499B6C87
sceMotionGetBasicOrientation: 0x4F28BFE0
sceMotionGetDeadband: 0x112E0EAE
+ sceMotionGetDeadbandExt: 0xC0586367
sceMotionGetDeviceLocation: 0x047F060A
sceMotionGetGyroBiasCorrection: 0xE8A28DA5
sceMotionGetMagnetometerState: 0x3D4813AE
sceMotionGetSensorState: 0x47D679EA
sceMotionGetState: 0xBDB32767
+ sceMotionGetStateExt: 0x340BFBE6
+ sceMotionGetStateInternal: 0xAD0B62B7
sceMotionGetTiltCorrection: 0xC1652201
+ sceMotionGetTiltCorrectionExt: 0xCBD9CA97
+ sceMotionInitLibraryExt: 0x3C970E36
sceMotionMagnetometerOff: 0xC1A7395A
sceMotionMagnetometerOn: 0x122A79F8
sceMotionReset: 0x0FD2CDA2
+ sceMotionResetExt: 0xB7F7535F
sceMotionRotateYaw: 0x20F00078
sceMotionSetAngleThreshold: 0xDACB2A41
sceMotionSetDeadband: 0x917EA390
+ sceMotionSetDeadbandExt: 0xEB345158
sceMotionSetGyroBiasCorrection: 0xA4A7E6E2
sceMotionSetTiltCorrection: 0xAF09FCDB
+ sceMotionSetTiltCorrectionExt: 0x58C0187B
sceMotionStartSampling: 0x28034AC9
+ sceMotionStartSamplingExt: 0x833FD8DC
sceMotionStopSampling: 0xAF32CB1D
+ sceMotionStopSamplingExt: 0x09338B80
+ sceMotionTermLibraryExt: 0x452F92F7
SceRtcUser:
nid: 0x6704D3C6
functions: