#include <stdint.h>
#include <string.h>
#include <stdbool.h>
Go to the source code of this file.
|
| enum | hpm_panel_mipi_format { HPM_PANEL_MIPI_FORMAT_RGB888
, HPM_PANEL_MIPI_FORMAT_RGB666
, HPM_PANEL_MIPI_FORMAT_RGB666_PACKED
, HPM_PANEL_MIPI_FORMAT_RGB565
} |
| |
| enum | hpm_panel_if_type { HPM_PANEL_IF_TYPE_RGB
, HPM_PANEL_IF_TYPE_LVDS_SINGLE
, HPM_PANEL_IF_TYPE_LVDS_SPLIT
, HPM_PANEL_IF_TYPE_MIPI
} |
| |
| enum | hpm_panel_mem_type { HPM_PANEL_MEM_TYPE_NONCACHEABLE = 0
, HPM_PANEL_MEM_TYPE_CACHEABLE
, HPM_PANEL_MEM_TYPE_MAX
, HPM_PANEL_MEM_TYPE_UNKNOWN
} |
| |
| enum | hpm_panel_state_power { HPM_PANEL_STATE_POWER_OFF
, HPM_PANEL_STATE_POWER_ON
} |
| |
◆ hpm_panel_funcs_t
◆ hpm_panel_hw_interface_t
◆ hpm_panel_if_type_t
◆ hpm_panel_mem_type_t
◆ hpm_panel_mipi_format
◆ hpm_panel_power_state_t
◆ hpm_panel_state_t
◆ hpm_panel_t
◆ hpm_panel_timing_t
◆ hpm_panel_if_type
| Enumerator |
|---|
| HPM_PANEL_IF_TYPE_RGB | |
| HPM_PANEL_IF_TYPE_LVDS_SINGLE | |
| HPM_PANEL_IF_TYPE_LVDS_SPLIT | |
| HPM_PANEL_IF_TYPE_MIPI | |
◆ hpm_panel_mem_type
| Enumerator |
|---|
| HPM_PANEL_MEM_TYPE_NONCACHEABLE | |
| HPM_PANEL_MEM_TYPE_CACHEABLE | |
| HPM_PANEL_MEM_TYPE_MAX | |
| HPM_PANEL_MEM_TYPE_UNKNOWN | |
◆ hpm_panel_mipi_format
| Enumerator |
|---|
| HPM_PANEL_MIPI_FORMAT_RGB888 | |
| HPM_PANEL_MIPI_FORMAT_RGB666 | |
| HPM_PANEL_MIPI_FORMAT_RGB666_PACKED | |
| HPM_PANEL_MIPI_FORMAT_RGB565 | |
◆ hpm_panel_state_power
| Enumerator |
|---|
| HPM_PANEL_STATE_POWER_OFF | |
| HPM_PANEL_STATE_POWER_ON | |
◆ hpm_panel_delay_ms()
| void hpm_panel_delay_ms |
( |
uint32_t |
ms | ) |
|
Delay specified milliseconds.
- Parameters
-
| [in] | ms | expected delay interval in milliseconds |
◆ hpm_panel_delay_us()
| void hpm_panel_delay_us |
( |
uint32_t |
us | ) |
|
Delay specified microseconds.
- Parameters
-
| [in] | us | expected delay interval in microseconds |
◆ hpm_panel_find_device()
| hpm_panel_t* hpm_panel_find_device |
( |
const char * |
name | ) |
|
Find panel for name.
- Parameters
-
- Returns
- pointer of panel instance
◆ hpm_panel_find_device_default()
Find default panel.
- Returns
- pointer of panel instance
◆ hpm_panel_get_backlight()
Get backlight value.
- Parameters
-
| [in] | panel | pointer of panel instance |
- Returns
- percent of backlight [0 - 100]
◆ hpm_panel_get_if_type()
Get panel interface type.
- Parameters
-
| [in] | panel | pointer of panel instance |
- Returns
- panel interface type hpm_panel_if_type_t
◆ hpm_panel_get_name()
Get panel name.
- Parameters
-
| panel | pointer of panel instance |
- Returns
- panel name
◆ hpm_panel_get_timing()
Get panel timing.
- Parameters
-
| panel | pointer of panel instance |
- Returns
- pointer of timing
◆ hpm_panel_init()
Initialize the panel.
- Parameters
-
| [in] | panel | pointer of panel instance |
◆ hpm_panel_memory_alloc()
Allocate panel memory of a specified type.
- Parameters
-
| [in] | type | memory type |
| [in] | size | memory size |
◆ hpm_panel_memory_free()
| void hpm_panel_memory_free |
( |
void * |
addr | ) |
|
Free panel memory.
- Parameters
-
◆ hpm_panel_memory_get_type()
Get panel memory type.
- Parameters
-
- Returns
- memory type
◆ hpm_panel_memory_register()
Register panel memory block to panel subsystem.
- Parameters
-
| [in] | type | memory block type |
| [in] | addr | memory block address |
| [in] | size | memory block size |
- Returns
- 0: success, other: failed
◆ hpm_panel_power_off()
Power off the panel.
- Parameters
-
| [in] | panel | pointer of panel instance |
◆ hpm_panel_power_on()
Power on the panel.
- Parameters
-
| [in] | panel | pointer of panel instance |
◆ hpm_panel_register_interface()
Register platform level hardware interface.
- Parameters
-
| [in] | panel | pointer of panel instance |
| [in] | hw_if | pointer of hardware interface |
◆ hpm_panel_reset()
Reset the panel.
- Parameters
-
| [in] | panel | pointer of panel instance |
◆ hpm_panel_set_backlight()
| void hpm_panel_set_backlight |
( |
hpm_panel_t * |
panel, |
|
|
uint16_t |
percent |
|
) |
| |
Set backlight value.
- Parameters
-
| [in] | panel | pointer of panel instance |
| [in] | percent | percent of backlight [0 - 100] |