SAI_IO class for using CODEC (MW8994) as analog input and output. このライブラリを登録した際のプログラム:「F746_AudioIO_Demo」
Dependents: F746_SD_WavPlayer F746_SD_GraphicEqualizer_ren0620 Joerg_turbo_ede CW_Decoder_using_FFT_on_DiscoF746NG ... more
Diff: SAI_InOut.hpp
- Revision:
- 2:1aef7b703249
- Parent:
- 1:48ed86c8430a
- Child:
- 3:3bfdd8be834f
diff -r 48ed86c8430a -r 1aef7b703249 SAI_InOut.hpp --- a/SAI_InOut.hpp Mon May 09 08:32:03 2016 +0000 +++ b/SAI_InOut.hpp Mon May 09 13:31:36 2016 +0000 @@ -29,8 +29,7 @@ int32_t GetLength() { return nData_; } - void StopAudioIn(); - + void RecordIn(); // sw = 0: DIGITAL_MICROPHONE_2 // 1: LINE_1 void SwitchInputDevice(int sw); @@ -39,14 +38,18 @@ void ResetCaptured() { captured_ = false; } void Input(int16_t &xL, int16_t &xR); + void StopIn() { BSP_AUDIO_IN_Stop(CODEC_PDWN_SW); } + void PauseIn() { BSP_AUDIO_IN_Pause(); } + void ResumeIn() { BSP_AUDIO_IN_Resume(); } + void PlayOut(); bool IsXferred(); void ResetXferred() { xferred_ = false; } void Output(int16_t xL, int16_t xR); - - void Stop() { BSP_AUDIO_OUT_Stop(CODEC_PDWN_SW); } - void Pause(); - void Resume(); + + void StopOut() { BSP_AUDIO_OUT_Stop(CODEC_PDWN_SW); } + void PauseOut() { BSP_AUDIO_OUT_Pause(); } + void ResumeOut() { BSP_AUDIO_OUT_Resume(); } // IF you use both input and output of SAI, // you can use following two functions.