class Lcd

Defined at line 22 of file ../../src/graphics/display/drivers/amlogic-display/lcd.h

An Lcd controls the panel attached to a MIPI-DSI endpoint.

Public Methods

void Lcd (const Lcd & )

Defined at line 52 of file ../../src/graphics/display/drivers/amlogic-display/lcd.h

Lcd & operator= (const Lcd & )

Defined at line 53 of file ../../src/graphics/display/drivers/amlogic-display/lcd.h

zx::result<std::unique_ptr<Lcd>> Create (fdf::Namespace & incoming, display::PanelType panel_type, const PanelConfig * panel_config, designware_dsi::DsiHostController * designware_dsi_host_controller, bool enabled)

Factory method intended for production use.

`panel_config` must not be null and must outlive the `Lcd` instance.

`designware_dsi_host_controller` must not be null and must outlive the

`Lcd` instance.

`enabled` is true iff the driver adopts an already initialized panel.

Creating an Lcd instance doesn't change the hardware state, and is

therefore safe to use when adopting a device previously initialized by

the bootloader or another driver.

Defined at line 151 of file ../../src/graphics/display/drivers/amlogic-display/lcd.cc

void Lcd (display::PanelType panel_type, const PanelConfig * panel_config, designware_dsi::DsiHostController * designware_dsi_host_controller, fidl::ClientEnd<fuchsia_hardware_gpio::Gpio> lcd_reset_gpio, bool enabled)

Production code should prefer using the `Create()` factory method.

`panel_config` must not be null and must outlive the `Lcd` instance.

`designware_dsi_host_controller` must not be null and must outlive the

`Lcd` instance.

`lcd_reset_gpio` must be a valid GPIO pin.

Defined at line 177 of file ../../src/graphics/display/drivers/amlogic-display/lcd.cc

zx::result<> Enable ()

Turn the panel on

Defined at line 347 of file ../../src/graphics/display/drivers/amlogic-display/lcd.cc

zx::result<> Disable ()

Turn the panel off

Defined at line 332 of file ../../src/graphics/display/drivers/amlogic-display/lcd.cc