pub fn dma_select(channel: dma_channel, select: dma_select)
{
    unsafe {
        use dma_channel::*;
        let ptr = pac::SYSCTL::ptr();
        match channel {
            CHANNEL0 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel0().variant(select)),
            CHANNEL1 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel1().variant(select)),
            CHANNEL2 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel2().variant(select)),
            CHANNEL3 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel3().variant(select)),
            CHANNEL4 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel4().variant(select)),
            CHANNEL5 => (*ptr).dma_sel1.modify(|_,w| w.dma_sel5().variant(select)),
        }
    }
}
/** Select DMA handshake for a channel */
Select DMA handshake for a channel
Select DMA handshake for a channel
pub fn dma_select(channel: dma_channel, select: dma_select)
{
    unsafe {
        use dma_channel::*;
        let ptr = pac::SYSCTL::ptr();
        match channel {
            CHANNEL0 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel0().variant(select)),
            CHANNEL1 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel1().variant(select)),
            CHANNEL2 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel2().variant(select)),
            CHANNEL3 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel3().variant(select)),
            CHANNEL4 => (*ptr).dma_sel0.modify(|_,w| w.dma_sel4().variant(select)),
            CHANNEL5 => (*ptr).dma_sel1.modify(|_,w| w.dma_sel5().variant(select)),
        }
    }
}
pub fn dma_select ( channel : dma_channel , select : dma_select ) { unsafe { use dma_channel :: * ; let ptr = pac :: SYSCTL :: ptr ( ) ; match channel { CHANNEL0 => ( * ptr ) . dma_sel0 . modify ( | _ , w | w . dma_sel0 ( ) . variant ( select ) ) , CHANNEL1 => ( * ptr ) . dma_sel0 . modify ( | _ , w | w . dma_sel1 ( ) . variant ( select ) ) , CHANNEL2 => ( * ptr ) . dma_sel0 . modify ( | _ , w | w . dma_sel2 ( ) . variant ( select ) ) , CHANNEL3 => ( * ptr ) . dma_sel0 . modify ( | _ , w | w . dma_sel3 ( ) . variant ( select ) ) , CHANNEL4 => ( * ptr ) . dma_sel0 . modify ( | _ , w | w . dma_sel4 ( ) . variant ( select ) ) , CHANNEL5 => ( * ptr ) . dma_sel1 . modify ( | _ , w | w . dma_sel5 ( ) . variant ( select ) ) , } } }
Select DMA handshake for a channel
Select DMA handshake for a channel
channel
dma_channel
select
dma_select
channel
dma_channel
select
dma_select