pub trait FrameBuffer<const ROWS: usize, const COLS: usize, const NROWS: usize, const BITS: u8, const FRAME_COUNT: usize>: ReadBuffer {
// Required method
fn get_word_size(&self) -> WordSize;
}
Expand description
Trait for read-only framebuffers
This trait defines the basic functionality required for a framebuffer that can be read from and transferred via DMA.
§Type Parameters
ROWS
- Total number of rows in the displayCOLS
- Number of columns in the displayNROWS
- Number of rows processed in parallelBITS
- Number of bits per color channelFRAME_COUNT
- Number of frames needed for BCM
Required Methods§
Sourcefn get_word_size(&self) -> WordSize
fn get_word_size(&self) -> WordSize
Returns the word size configuration for this framebuffer