Struct stm32_metapac::dma2d::regs::Nlr
#[repr(transparent)]pub struct Nlr(pub u32);
Expand description
DMA2D number of line register
Tuple Fields§
§0: u32
Implementations§
§impl Nlr
impl Nlr
pub const fn nl(&self) -> u16
pub const fn nl(&self) -> u16
Number of lines Number of lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub fn set_nl(&mut self, val: u16)
pub fn set_nl(&mut self, val: u16)
Number of lines Number of lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only.
pub const fn pl(&self) -> u16
pub const fn pl(&self) -> u16
Pixel per lines Number of pixels per lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. If any of the input image format is 4-bit per pixel, pixel per lines must be even.
pub fn set_pl(&mut self, val: u16)
pub fn set_pl(&mut self, val: u16)
Pixel per lines Number of pixels per lines of the area to be transferred. These bits can only be written when data transfers are disabled. Once the transfer has started, they are read-only. If any of the input image format is 4-bit per pixel, pixel per lines must be even.