pub struct PinMap {
pub red0: usize,
pub grn0: usize,
pub blu0: usize,
pub red1: usize,
pub grn1: usize,
pub blu1: usize,
pub addr_lsb: usize,
pub addr_bits: usize,
pub latch: usize,
pub oe: usize,
pub spare: [usize; 3],
}Expand description
Bit position of every HUB75 signal within one framebuffer word.
Naming note: color0_* (the red0/grn0/blu0 fields) carry the
upper-half R0/G0/B0 triplet and drive the red1/grn1/blu1
accessors, while color1_* (red1/grn1/blu1 fields) carry the
lower-half R1/G1/B1 triplet and drive red2/grn2/blu2.
The three colour signals of a triplet are assumed to be contiguous with red as the least-significant bit (true of every supported layout); the exact per-channel bits are recorded anyway so a driver can verify the wiring.
Fields§
§red0: usizeBit of the upper-half red signal (R0, red1 accessor).
grn0: usizeBit of the upper-half green signal (G0, grn1 accessor).
blu0: usizeBit of the upper-half blue signal (B0, blu1 accessor).
red1: usizeBit of the lower-half red signal (R1, red2 accessor).
grn1: usizeBit of the lower-half green signal (G1, grn2 accessor).
blu1: usizeBit of the lower-half blue signal (B1, blu2 accessor).
addr_lsb: usizeLeast-significant bit of the row-address field (A).
addr_bits: usizeWidth of the row-address field in bits (A..E = 5).
latch: usizeBit of the latch / strobe (LAT) signal.
oe: usizeBit of the output-enable (OE) signal.
spare: [usize; 3]The unused (“spare”) bits in the word. The 16-bit layouts expose these
through the dummy0/dummy1/dummy2 accessors; set to usize::MAX
when unused.
Implementations§
Source§impl PinMap
impl PinMap
Sourcepub const fn latch_mask(&self) -> u16
pub const fn latch_mask(&self) -> u16
Mask covering the latch bit.
Sourcepub const fn color0_mask(&self) -> u16
pub const fn color0_mask(&self) -> u16
Mask covering the upper-half R0/G0/B0 colour bits.
Sourcepub const fn color1_mask(&self) -> u16
pub const fn color1_mask(&self) -> u16
Mask covering the lower-half R1/G1/B1 colour bits.
Sourcepub const fn color_mask(&self) -> u16
pub const fn color_mask(&self) -> u16
Mask covering every colour bit.