Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-os-example-mbed5-blinky by
Diff: DuerOS-Light-SDK-v1.1.0/duer-os-light/src/vs10xx/baidu_vs10xx_base.h
- Revision:
- 47:9e361da97763
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/DuerOS-Light-SDK-v1.1.0/duer-os-light/src/vs10xx/baidu_vs10xx_base.h Tue Jul 18 16:54:45 2017 +0800
@@ -0,0 +1,47 @@
+// Copyright 2017 Baidu Inc. All Rights Reserved.
+// Author: Su Hao (suhao@baidu.com)
+//
+// Description: Implement MediaBase for Vs10xx
+
+#ifndef BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H
+#define BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H
+
+#include "vs10xx.h"
+#include "baidu_media_base.h"
+
+namespace duer {
+
+class Vs10xxBase : public MediaBase {
+public:
+ Vs10xxBase(
+ PinName mosi,
+ PinName miso,
+ PinName sclk,
+ PinName xcs,
+ PinName xdcs,
+ PinName dreq,
+ PinName xreset);
+
+protected:
+ virtual int on_start_play(MediaType type);
+
+ virtual int on_write(const void* data, size_t size);
+
+ virtual int on_voice(unsigned char vol);
+
+ virtual int on_pause_play();
+
+ virtual int on_stop_play();
+
+ virtual int on_start_record();
+
+ virtual size_t on_read(void* data, size_t size);
+
+ virtual int on_stop_record();
+
+ vs10xx _vs10xx;
+};
+
+} // namespace duer
+
+#endif // BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H
