diff src/cs/services/vibr/vibr_api.h @ 294:e17bdedfbf2b

VIBR SWE initial implementation
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 27 Mar 2022 08:46:10 +0000
parents
children a927f030a4e0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/cs/services/vibr/vibr_api.h	Sun Mar 27 08:46:10 2022 +0000
@@ -0,0 +1,16 @@
+/*
+ * This header file defines the external API of our VIBR SWE,
+ * callable from other tasks such as UI or AT commands.
+ */
+
+#ifndef __VIBR_API_H
+#define __VIBR_API_H
+
+#include "rv/rv_general.h"
+
+#define	VIBR_LEVEL_MAX	255
+
+T_RV_RET vibr_pulse_train_start(UINT8 num_pulses, UINT8 vibr_level);
+T_RV_RET vibr_pulse_train_stop(void);
+
+#endif	/* include guard */