[[ファームウェア関数一覧>ファームウェア関数一覧#d5c56b4f]] *TIM_DMAConfig [#k4b3e2ec] #contents **ヘッダ宣言 [#a3e0dbe0] **関数プロトタイプ [#b422e5a3] void TIM_DMAConfig(TIM_TypeDef* TIMx,uint8_t TIM_DMABase, uint16_t TIM_DMABurstLength) **動作 [#cb17243f] -タイマのFMAインターフェイスを設定します。 **引数 [#n4122d19] -TIMx&br; TIM1~TIM5,TIM8を指定します。&br; &br; #include(Macro/TIMxTIM,notitle) &br; -TIM_DMABase&br; DMAのベース・アドレスを以下のマクロから選択します。&br; &br; |CENTER:TIM_DMABase|CENTER:説明|h |TIM_DMABase_CR1|CR1 register used as DMA Base| |TIM_DMABase_CR2|CR2 register used as DMA Base| |TIM_DMABase_SMCR|SMCR register used as DMA Base| |TIM_DMABase_DIER|DIER register used as DMA Base| |TIM_DMABase_SR|SR register used as DMA Base| |TIM_DMABase_EGR|EGR register used as DMA Base| |TIM_DMABase_CCMR1|CCMR1 register used as DMA Base| |TIM_DMABase_CCMR2|CCMR2 register used as DMA Base| |TIM_DMABase_CCER|CCER register used as DMA Base| |TIM_DMABase_CNT|CNT register used as DMA Base| |TIM_DMABase_PSC|PSC register used as DMA Base| |TIM_DMABase_ARR|ARR register used as DMA Base| |TIM_DMABase_RCR|RCR register used as DMA Base| |TIM_DMABase_CCR1|CCR1 register used as DMA Base| |TIM_DMABase_CCR2|CCR2 register used as DMA Base| |TIM_DMABase_CCR3|CCR3 register used as DMA Base| |TIM_DMABase_CCR4|CCR4 register used as DMA Base| |TIM_DMABase_BDTR|BDTR register used as DMA Base| |TIM_DMABase_DCR|DCR register used as DMA Base| #include(Macro/TIM_DMABase,notitle) &br; -TIM_DMABurstLength&br; DMA転送のバースト長を以下のマクロから選択します。&br; &br; |CENTER:TIM_DMABurstLength|CENTER:説明|h |TIM_DMABurstLength_1Byte|DMA Burst length 1 byte| |TIM_DMABurstLength_2Bytes|DMA Burst length 2 bytes| |TIM_DMABurstLength_3Bytes|DMA Burst length 3 bytes| |TIM_DMABurstLength_4Bytes|DMA Burst length 4 bytes| |TIM_DMABurstLength_5Bytes|DMA Burst length 5 bytes| |TIM_DMABurstLength_6Bytes|DMA Burst length 6 bytes| |TIM_DMABurstLength_7Bytes|DMA Burst length 7 bytes| |TIM_DMABurstLength_8Bytes|DMA Burst length 8 bytes| |TIM_DMABurstLength_9Bytes|DMA Burst length 9 bytes| |TIM_DMABurstLength_10Bytes|DMA Burst length 10 bytes| |TIM_DMABurstLength_11Bytes|DMA Burst length 11 bytes| |TIM_DMABurstLength_12Bytes|DMA Burst length 12 bytes| |TIM_DMABurstLength_13Bytes|DMA Burst length 13 bytes| |TIM_DMABurstLength_14Bytes|DMA Burst length 14 bytes| |TIM_DMABurstLength_15Bytes|DMA Burst length 15 bytes| |TIM_DMABurstLength_16Bytes|DMA Burst length 16 bytes| |TIM_DMABurstLength_17Bytes|DMA Burst length 17 bytes| |TIM_DMABurstLength_18Bytes|DMA Burst length 18 bytes| #include(Macro/TIM_DMABurstLength,notitle) &br; **戻り値 [#j3c42da2] -無し **場所 [#g824ccd3] **呼び出し関数 [#jbdab48f] -無し **サンプル [#d8e5735f] /* Configures the TIM1 DMA Interface to transfer 1 byte and to use the CCR1 as base address */ TIM_DMAConfig(TIM1, TIM_DMABase_CCR1, TIM_DMABurstLength_1Byte) **参照 [#e3110ea7] -STMマイコン徹底入門 P.