ファームウェア関数一覧
TIM_DMAConfig †
ヘッダ宣言 †
関数プロトタイプ †
void TIM_DMAConfig(TIM_TypeDef* TIMx,uint_t8 TIM_DMABase, uint_t16 TIM_DMABurstLength)
動作 †
引数 †
- TIMx
TIM1~TIM5,TIM8を指定します。
- TIM_DMABase
DMAのベース・アドレスを以下のマクロから選択します。
TIM_DMABase | 説明 |
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 |
- TIM_DMABurstLength
DMA転送のバースト長を以下のマクロから選択します。
TIM_DMABurstLength | 説明 |
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 |
戻り値 †
場所 †
呼び出し関数 †
サンプル †
/* 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)
参照 †