summaryrefslogtreecommitdiff
path: root/include/user/motion.h
diff options
context:
space:
mode:
authorGrapheneCt2020-10-24 00:07:54 -0400
committerReiko Asakura2020-10-24 00:07:54 -0400
commitbba6c470a64c55c80789eafdcda4ccdb5d043e1e (patch)
tree4c0e041f8ddabdd7c47cf01e3b1307910da6ce65 /include/user/motion.h
parentAdded ShaccCg Headers (diff)
downloadvds-libraries-bba6c470a64c55c80789eafdcda4ccdb5d043e1e.tar.gz
Add SceMotion ext and internal funcs
Diffstat (limited to '')
-rw-r--r--include/user/motion.h109
1 files changed, 109 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_ */
+
+