#include <stdint.h>#include <string.h>#include <stdbool.h>Go to the source code of this file.
Data Structures | |
| struct | hpm_panel_timing |
| struct | hpm_panel_hw_interface |
| struct | hpm_panel_funcs |
| struct | hpm_panel_state |
| struct | hpm_panel |
Typedefs | |
| typedef struct hpm_panel | hpm_panel_t |
| typedef struct hpm_panel_timing | hpm_panel_timing_t |
| typedef enum hpm_panel_mipi_format | hpm_panel_mipi_format |
| typedef struct hpm_panel_hw_interface | hpm_panel_hw_interface_t |
| typedef struct hpm_panel_funcs | hpm_panel_funcs_t |
| typedef enum hpm_panel_if_type | hpm_panel_if_type_t |
| typedef enum hpm_panel_mem_type | hpm_panel_mem_type_t |
| typedef enum hpm_panel_state_power | hpm_panel_power_state_t |
| typedef struct hpm_panel_state | hpm_panel_state_t |
Functions | |
| hpm_panel_t * | hpm_panel_find_device_default (void) |
| Find default panel. More... | |
| hpm_panel_t * | hpm_panel_find_device (const char *name) |
| Find panel for name. More... | |
| const char * | hpm_panel_get_name (hpm_panel_t *panel) |
| Get panel name. More... | |
| const hpm_panel_timing_t * | hpm_panel_get_timing (hpm_panel_t *panel) |
| Get panel timing. More... | |
| int | hpm_panel_get_timing_list (hpm_panel_t *panel, const hpm_panel_timing_t **timing_list, uint16_t *timing_list_num) |
| Get panel timing list. More... | |
| const hpm_panel_timing_t * | hpm_panel_get_timing_by_fps (hpm_panel_t *panel, uint16_t fps_hz) |
| Get panel nearest timing by fps. More... | |
| hpm_panel_if_type_t | hpm_panel_get_if_type (hpm_panel_t *panel) |
| Get panel interface type. More... | |
| void | hpm_panel_register_interface (hpm_panel_t *panel, hpm_panel_hw_interface_t *hw_if) |
| Register platform level hardware interface. More... | |
| void | hpm_panel_reset (hpm_panel_t *panel) |
| Reset the panel. More... | |
| void | hpm_panel_init (hpm_panel_t *panel) |
| Initialize the panel. More... | |
| void | hpm_panel_init_by_timing (hpm_panel_t *panel, const hpm_panel_timing_t *timing) |
| Initialize the panel by specified timing. More... | |
| void | hpm_panel_power_on (hpm_panel_t *panel) |
| Power on the panel. More... | |
| void | hpm_panel_power_off (hpm_panel_t *panel) |
| Power off the panel. More... | |
| void | hpm_panel_set_backlight (hpm_panel_t *panel, uint16_t percent) |
| Set backlight value. More... | |
| uint8_t | hpm_panel_get_backlight (hpm_panel_t *panel) |
| Get backlight value. More... | |
| void | hpm_panel_delay_ms (uint32_t ms) |
| Delay specified milliseconds. More... | |
| void | hpm_panel_delay_us (uint32_t us) |
| Delay specified microseconds. More... | |
| void * | hpm_panel_memory_alloc (hpm_panel_mem_type_t type, uint32_t size) |
| Allocate panel memory of a specified type. More... | |
| void | hpm_panel_memory_free (void *addr) |
| Free panel memory. More... | |
| hpm_panel_mem_type_t | hpm_panel_memory_get_type (void *addr) |
| Get panel memory type. More... | |
| int | hpm_panel_memory_register (hpm_panel_mem_type_t type, void *addr, uint32_t size) |
| Register panel memory block to panel subsystem. More... | |
| typedef struct hpm_panel_funcs hpm_panel_funcs_t |
| typedef struct hpm_panel_hw_interface hpm_panel_hw_interface_t |
| typedef enum hpm_panel_if_type hpm_panel_if_type_t |
| typedef enum hpm_panel_mem_type hpm_panel_mem_type_t |
| typedef enum hpm_panel_mipi_format hpm_panel_mipi_format |
| typedef enum hpm_panel_state_power hpm_panel_power_state_t |
| typedef struct hpm_panel_state hpm_panel_state_t |
| typedef struct hpm_panel hpm_panel_t |
| typedef struct hpm_panel_timing hpm_panel_timing_t |
| enum hpm_panel_if_type |
| enum hpm_panel_mem_type |
| void hpm_panel_delay_ms | ( | uint32_t | ms | ) |
Delay specified milliseconds.
| [in] | ms | expected delay interval in milliseconds |
| void hpm_panel_delay_us | ( | uint32_t | us | ) |
Delay specified microseconds.
| [in] | us | expected delay interval in microseconds |
| hpm_panel_t* hpm_panel_find_device | ( | const char * | name | ) |
Find panel for name.
| [in] | name | of panel |
| hpm_panel_t* hpm_panel_find_device_default | ( | void | ) |
Find default panel.
| uint8_t hpm_panel_get_backlight | ( | hpm_panel_t * | panel | ) |
Get backlight value.
| [in] | panel | pointer of panel instance |
| hpm_panel_if_type_t hpm_panel_get_if_type | ( | hpm_panel_t * | panel | ) |
Get panel interface type.
| [in] | panel | pointer of panel instance |
| const char* hpm_panel_get_name | ( | hpm_panel_t * | panel | ) |
Get panel name.
| panel | pointer of panel instance |
| const hpm_panel_timing_t* hpm_panel_get_timing | ( | hpm_panel_t * | panel | ) |
Get panel timing.
| panel | pointer of panel instance |
| const hpm_panel_timing_t* hpm_panel_get_timing_by_fps | ( | hpm_panel_t * | panel, |
| uint16_t | fps_hz | ||
| ) |
Get panel nearest timing by fps.
| [in] | panel | pointer of panel instance |
| [in] | fps_hz | frame per second, UINT: Hz |
| int hpm_panel_get_timing_list | ( | hpm_panel_t * | panel, |
| const hpm_panel_timing_t ** | timing_list, | ||
| uint16_t * | timing_list_num | ||
| ) |
Get panel timing list.
| [in] | panel | pointer of panel instance |
| [out] | timing_list | pointer of timing list |
| [out] | timing_list_num | pointer number of timing list |
| void hpm_panel_init | ( | hpm_panel_t * | panel | ) |
Initialize the panel.
| [in] | panel | pointer of panel instance |
| void hpm_panel_init_by_timing | ( | hpm_panel_t * | panel, |
| const hpm_panel_timing_t * | timing | ||
| ) |
Initialize the panel by specified timing.
| [in] | panel | pointer of panel instance |
| [in] | timing | pointer of timing, NULL means use default timing |
| void* hpm_panel_memory_alloc | ( | hpm_panel_mem_type_t | type, |
| uint32_t | size | ||
| ) |
Allocate panel memory of a specified type.
| [in] | type | memory type |
| [in] | size | memory size |
| void hpm_panel_memory_free | ( | void * | addr | ) |
Free panel memory.
| [in] | addr | memory address |
| hpm_panel_mem_type_t hpm_panel_memory_get_type | ( | void * | addr | ) |
Get panel memory type.
| [in] | addr | memory address |
| int hpm_panel_memory_register | ( | hpm_panel_mem_type_t | type, |
| void * | addr, | ||
| uint32_t | size | ||
| ) |
Register panel memory block to panel subsystem.
| [in] | type | memory block type |
| [in] | addr | memory block address |
| [in] | size | memory block size |
| void hpm_panel_power_off | ( | hpm_panel_t * | panel | ) |
Power off the panel.
| [in] | panel | pointer of panel instance |
| void hpm_panel_power_on | ( | hpm_panel_t * | panel | ) |
Power on the panel.
| [in] | panel | pointer of panel instance |
| void hpm_panel_register_interface | ( | hpm_panel_t * | panel, |
| hpm_panel_hw_interface_t * | hw_if | ||
| ) |
Register platform level hardware interface.
| [in] | panel | pointer of panel instance |
| [in] | hw_if | pointer of hardware interface |
| void hpm_panel_reset | ( | hpm_panel_t * | panel | ) |
Reset the panel.
| [in] | panel | pointer of panel instance |
| void hpm_panel_set_backlight | ( | hpm_panel_t * | panel, |
| uint16_t | percent | ||
| ) |
Set backlight value.
| [in] | panel | pointer of panel instance |
| [in] | percent | percent of backlight [0 - 100] |