[−][src]Struct gba_hal::data::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]
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]
self,
dest_address_ctrl: DestAddressControl
) -> Self
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]
self,
src_address_ctrl: SourceAddressControl
) -> Self
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]
fn eq(&self, other: &DMAControl) -> bool
[src]
fn ne(&self, other: &DMAControl) -> bool
[src]
impl Eq for DMAControl
[src]
impl Debug for DMAControl
[src]
impl Copy for DMAControl
[src]
impl Clone for DMAControl
[src]
fn clone(&self) -> 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]
fn default() -> 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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,