Final version.
Fork of F746_SAI_IO by
Diff: SAI_InOut.hpp
- Revision:
- 2:1aef7b703249
- Parent:
- 1:48ed86c8430a
- Child:
- 3:3bfdd8be834f
--- 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.