pub struct Module {
pub width: u16,
pub height: u16,
pub scan: u8,
pub serial_clock: Option<u16>,
pub gray_bits: Option<u8>,
pub line_dir: u8,
pub data_groups: u8,
}Fields§
§width: u16Pixels across one module.
height: u16Pixels down one module. The record stores half of this.
scan: u8Scan denominator, e.g. 16 for 1/16.
serial_clock: Option<u16>Serial (data) clock setting, the vendor’s SetSerialClockFrequency unit; the chip library’s default when absent.
gray_bits: Option<u8>Grayscale depth override; derived from the chip registers when absent.
line_dir: u8Data line direction: 0/1 vertical, 2/3 horizontal (vendor GetLineDir).
data_groups: u8Data-group / output code (record +0x044 low nibble).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Module
impl<'de> Deserialize<'de> for Module
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnsafeUnpin for Module
impl UnwindSafe for Module
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more