Struct esp32s3_hal::pac::lcd_cam::lcd_user::W
pub struct W(_);
Expand description
Register LCD_USER
writer
Implementations§
§impl W
impl W
pub fn lcd_dout_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, LCD_USER_SPEC, u16, u16, Unsafe, 13, 0>
pub fn lcd_dout_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, LCD_USER_SPEC, u16, u16, Unsafe, 13, 0>
Bits 0:12 - The output data cycles minus 1 of LCD module.
pub fn lcd_always_out_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 13>
pub fn lcd_always_out_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 13>
Bit 13 - LCD always output when LCD is in LCD_DOUT state, unless reg_lcd_start is cleared or reg_lcd_reset is set.
pub fn lcd_8bits_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 19>
pub fn lcd_8bits_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 19>
Bit 19 - 1: invert every two data byte, valid in 1 byte mode. 0: Not change.
pub fn lcd_update(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 20>
pub fn lcd_update(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 20>
Bit 20 - 1: Update LCD registers, will be cleared by hardware. 0 : Not care.
pub fn lcd_bit_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 21>
pub fn lcd_bit_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 21>
Bit 21 - 1: Change data bit order, change LCD_DATA_out[7:0] to LCD_DATA_out[0:7] in one byte mode, and bits[15:0] to bits[0:15] in two byte mode. 0: Not change.
pub fn lcd_byte_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 22>
pub fn lcd_byte_order(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 22>
Bit 22 - 1: invert data byte order, only valid in 2 byte mode. 0: Not change.
pub fn lcd_2byte_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 23>
pub fn lcd_2byte_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 23>
Bit 23 - 1: The bit number of output LCD data is 9~16. 0: The bit number of output LCD data is 0~8.
pub fn lcd_dout(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 24>
pub fn lcd_dout(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 24>
Bit 24 - 1: Be able to send data out in LCD sequence when LCD starts. 0: Disable.
pub fn lcd_dummy(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 25>
pub fn lcd_dummy(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 25>
Bit 25 - 1: Enable DUMMY phase in LCD sequence when LCD starts. 0: Disable.
pub fn lcd_cmd(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 26>
pub fn lcd_cmd(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 26>
Bit 26 - 1: Be able to send command in LCD sequence when LCD starts. 0: Disable.
pub fn lcd_start(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 27>
pub fn lcd_start(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 27>
Bit 27 - LCD start sending data enable signal, valid in high level.
pub fn lcd_reset(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 28>
pub fn lcd_reset(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 28>
Bit 28 - The value of command.
pub fn lcd_dummy_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, LCD_USER_SPEC, u8, u8, Unsafe, 2, 29>
pub fn lcd_dummy_cyclelen(
&mut self
) -> FieldWriterRaw<'_, u32, LCD_USER_SPEC, u8, u8, Unsafe, 2, 29>
Bits 29:30 - The dummy cycle length minus 1.
pub fn lcd_cmd_2_cycle_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 31>
pub fn lcd_cmd_2_cycle_en(
&mut self
) -> BitWriterRaw<'_, u32, LCD_USER_SPEC, bool, BitM, 31>
Bit 31 - The cycle length of command phase. 1: 2 cycles. 0: 1 cycle.
Methods from Deref<Target = W<LCD_USER_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.