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
baidu_vs10xx_base.h
00001 // Copyright 2017 Baidu Inc. All Rights Reserved. 00002 // Author: Su Hao (suhao@baidu.com) 00003 // 00004 // Description: Implement MediaBase for Vs10xx 00005 00006 #ifndef BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H 00007 #define BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H 00008 00009 #include "vs10xx.h" 00010 #include "baidu_media_base.h" 00011 00012 namespace duer { 00013 00014 class Vs10xxBase : public MediaBase { 00015 public: 00016 Vs10xxBase( 00017 PinName mosi, 00018 PinName miso, 00019 PinName sclk, 00020 PinName xcs, 00021 PinName xdcs, 00022 PinName dreq, 00023 PinName xreset); 00024 00025 protected: 00026 virtual int on_start_play(MediaType type); 00027 00028 virtual int on_write(const void* data, size_t size); 00029 00030 virtual int on_voice(unsigned char vol); 00031 00032 virtual int on_pause_play(); 00033 00034 virtual int on_stop_play(); 00035 00036 virtual int on_start_record(); 00037 00038 virtual size_t on_read(void* data, size_t size); 00039 00040 virtual int on_stop_record(); 00041 00042 vs10xx _vs10xx; 00043 }; 00044 00045 } // namespace duer 00046 00047 #endif // BAIDU_TINYDU_IOT_OS_SRC_VS10XX_BAIDU_VS10XX_BASE_H
Generated on Tue Jul 12 2022 16:28:53 by
1.7.2
