summaryrefslogtreecommitdiffstats
path: root/watch-library/shared/watch/watch.h
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2022-08-03 11:56:52 -0600
committerGitHub <noreply@github.com>2022-08-03 11:56:52 -0600
commite790a025787e0e1aa59b98b95e194cf4318d1578 (patch)
tree149bd53bbd46ebddd31957cc827a7c40ccf6f1a0 /watch-library/shared/watch/watch.h
parent6d87f5a6268a9a516d8c577dfd71b39a5bfc384a (diff)
parentbcd3b666848214a735f37a5a4f08b157ba7bb3a1 (diff)
downloadSensor-Watch-e790a025787e0e1aa59b98b95e194cf4318d1578.tar.gz
Sensor-Watch-e790a025787e0e1aa59b98b95e194cf4318d1578.tar.bz2
Sensor-Watch-e790a025787e0e1aa59b98b95e194cf4318d1578.zip
Merge pull request #80 from joeycastillo/lfs
Movement: add a lil file system with lfs
Diffstat (limited to 'watch-library/shared/watch/watch.h')
-rw-r--r--watch-library/shared/watch/watch.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/watch-library/shared/watch/watch.h b/watch-library/shared/watch/watch.h
index ce85eed3..b94d36fb 100644
--- a/watch-library/shared/watch/watch.h
+++ b/watch-library/shared/watch/watch.h
@@ -64,6 +64,7 @@
#include "watch_i2c.h"
#include "watch_spi.h"
#include "watch_uart.h"
+#include "watch_storage.h"
#include "watch_deepsleep.h"
#include "watch_private.h"
@@ -75,4 +76,16 @@
*/
bool watch_is_buzzer_or_led_enabled(void);
+/** @brief Returns true if USB is enabled.
+ */
+bool watch_is_usb_enabled(void);
+
+/** @brief Reads up to len bytes from the USB serial.
+ * @param file ignored, you can pass in 0
+ * @param ptr pointer to a buffer of at least len bytes
+ * @param len the number of bytes you wish to read, max 256.
+ * @return The number of bytes read, or zero if no bytes were read.
+ */
+int read(int file, char *ptr, int len);
+
#endif /* WATCH_H_ */ \ No newline at end of file