[][src]Struct gba_hal::data::DMAControl

#[repr(transparent)]
pub struct DMAControl(_);

Configures a DMA unit.

  • 5-6: destination address control
  • 7-8: source address control
  • 9: DMA repeat
  • 10: DMA transfer type
  • 12-13: DMA start timing
  • 14: Interrupt when DMA ends
  • 15: DMA Enable

DRQ is only for special game pak units, and so it isn't supported by this type.

Methods

impl DMAControl[src]

pub const fn new() -> Self[src]

A const "zero value" constructor

impl DMAControl[src]

pub const DEST_ADDRESS_CTRL_MASK: u16[src]

pub fn dest_address_ctrl(self) -> DestAddressControl[src]

pub const fn with_dest_address_ctrl(
    self,
    dest_address_ctrl: DestAddressControl
) -> Self
[src]

pub const SRC_ADDRESS_CTRL_MASK: u16[src]

pub fn src_address_ctrl(self) -> SourceAddressControl[src]

pub const fn with_src_address_ctrl(
    self,
    src_address_ctrl: SourceAddressControl
) -> Self
[src]

pub const DMA_REPEATS_BIT: u16[src]

pub const fn dma_repeats(self) -> bool[src]

pub const fn with_dma_repeats(self, bit: bool) -> Self[src]

pub const DMA_IS_32BIT_BIT: u16[src]

pub const fn dma_is_32bit(self) -> bool[src]

pub const fn with_dma_is_32bit(self, bit: bool) -> Self[src]

pub const DMA_START_TIME_MASK: u16[src]

pub fn dma_start_time(self) -> StartTiming[src]

pub const fn with_dma_start_time(self, dma_start_time: StartTiming) -> Self[src]

pub const IRQ_AT_END_BIT: u16[src]

pub const fn irq_at_end(self) -> bool[src]

pub const fn with_irq_at_end(self, bit: bool) -> Self[src]

pub const DMA_ENABLE_BIT: u16[src]

pub const fn dma_enable(self) -> bool[src]

pub const fn with_dma_enable(self, bit: bool) -> Self[src]

Trait Implementations

impl PartialEq<DMAControl> for DMAControl[src]

impl Eq for DMAControl[src]

impl Debug for DMAControl[src]

impl Copy for DMAControl[src]

impl Clone for DMAControl[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for DMAControl[src]

Auto Trait Implementations

impl Send for DMAControl

impl Sync for DMAControl

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]