Struct esp32c2_hal::gdma::Gdma
source · pub struct Gdma<'d> {
pub channel0: ChannelCreator0,
/* private fields */
}
Expand description
GDMA Peripheral
This offers the available DMA channels.
Fields§
§channel0: ChannelCreator0
Implementations§
source§impl<'d> Gdma<'d>
impl<'d> Gdma<'d>
sourcepub fn new(
dma: impl Peripheral<P = DMA> + 'd,
peripheral_clock_control: &mut PeripheralClockControl
) -> Gdma<'d>
pub fn new( dma: impl Peripheral<P = DMA> + 'd, peripheral_clock_control: &mut PeripheralClockControl ) -> Gdma<'d>
Create a DMA instance.