このファイルはVisualDSP++ 4.5のサンプル・アプリケーション、TalkTrhoughから 複製して変更したものである。EZ-KIT BF537のオーディオ・コーディックを利用する ための関数群からなる。。
afw.cpp で定義されています。
#include "afw.h"
ネームスペース | |
namespace | afw |
関数 | |
void | afw::initGPIO (void) |
GPIOの初期化 | |
void | afw::resetCODEC (void) |
オーディオ・コーデックのリセット | |
void | afw::initSPORT (void) |
SPORT0の初期化 | |
void | afw::initDMA (void) |
SPORT DMAの初期化 | |
void | afw::initInterrupt (void) |
割り込みのイネーブル | |
void | afw::init (void) |
afwの初期化 | |
void | afw::start (void) |
SPORTとDMAのイネーブル | |
bool | afw::ISR (void) |
SPORT0受信DMA割り込みサービス・ルーチン | |
変数 | |
const int | afw::LEFT_CH = 0 |
左チャンネル指定定数 | |
const int | afw::RIGHT_CH = 1 |
右チャンネル指定定数 | |
const int | afw::INTR_PER_BUFFER = 3 |
バッファ数宣言定数 | |
const int | afw::CH_PER_SAMPLE = 2 |
サンプルあたりチャンネル数の宣言 | |
const int | afw::SAMPLE_PER_INTR = 8 |
割り込みあたりのサンプル数 | |
const int | afw::CODEC_RESET_PULS_WIDTH = 0x10000 |
オーディオ・コーデックのリセット時間 | |
const int | afw::SPORT0_SLEN_32 = 31 |
SPORT0のワード長 | |
volatile int | afw::txBuffer [INTR_PER_BUFFER][SAMPLE_PER_INTR][CH_PER_SAMPLE] |
SPORT0 DMA 送信バッファ | |
volatile int | afw::rxBuffer [INTR_PER_BUFFER][SAMPLE_PER_INTR][CH_PER_SAMPLE] |
SPORT0 DMA 受信バッファ | |
short | afw::lchIn [SAMPLE_PER_INTR] |
左チャンネル入力バッファ | |
short | afw::lchOut [SAMPLE_PER_INTR] |
左チャンネル出力バッファ | |
short | afw::rchIn [SAMPLE_PER_INTR] |
右チャンネル入力バッファ | |
short | afw::rchOut [SAMPLE_PER_INTR] |
右チャンネル出力バッファ |