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
Revision 12:61e2c3cc79a3, committed 2018-03-12
- Comitter:
- MikamiUitOpen
- Date:
- Mon Mar 12 04:51:31 2018 +0000
- Parent:
- 11:66f6a85cebc6
- Commit message:
- 13
Changed in this revision
SAI_InOut.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 66f6a85cebc6 -r 61e2c3cc79a3 SAI_InOut.cpp --- a/SAI_InOut.cpp Thu Mar 16 23:35:58 2017 +0000 +++ b/SAI_InOut.cpp Mon Mar 12 04:51:31 2018 +0000 @@ -1,6 +1,9 @@ //----------------------------------------------------------- // SaiIO class -// 2017/03/16, Copyright (c) 2017 MIKAMI, Naoki +// BSP_DISCO_F746NG Rev.9 に合わせて変更 +// InitInput() の内容を一部変更(変更前の部分はコメントアウト) +// +// 2017/09/17, Copyright (c) 2017 MIKAMI, Naoki //----------------------------------------------------------- #include "SAI_InOut.hpp" @@ -117,10 +120,14 @@ 70 : 90; InputFp = (inputDevice == INPUT_DEVICE_INPUT_LINE_1) ? &SaiIO::InputNormal : &SaiIO::InputReversal; - if (IOBOTH_ == BOTH) +/* if (BSP_AUDIO_IN_OUT_Init(inputDevice, OUTPUT_DEVICE_HEADPHONE, audioInVolume, FS_) == AUDIO_ERROR) +*/ + if (BSP_AUDIO_IN_OUT_Init(inputDevice, OUTPUT_DEVICE_HEADPHONE, + FS_, DEFAULT_AUDIO_IN_BIT_RESOLUTION, + DEFAULT_AUDIO_IN_CHANNEL_NBR) == AUDIO_ERROR) ErrorTrap(); if (IOBOTH_ == INPUT)