This module contains APIs to program and use the Panel module on the board like HDMI Panel connected over a bridge. See PANEL for more details.
◆ PANEL_INVALID_VALUE
#define PANEL_INVALID_VALUE (0xFFFFFFFFU) |
◆ CONFIG_PANEL_TYPE_I2C
#define CONFIG_PANEL_TYPE_I2C (0x00U) |
◆ CONFIG_PANEL_TYPE_DSI
#define CONFIG_PANEL_TYPE_DSI (0x01U) |
◆ CONFIG_PANEL_TYPE_INVALID
#define CONFIG_PANEL_TYPE_INVALID (0xFFU) |
◆ PANEL_MAX_NUM_PINS_CTRL
#define PANEL_MAX_NUM_PINS_CTRL (0xAU) |
Max number pins configured for panel pin control.
◆ Panel_Handle
◆ Panel_Config
◆ Panel_Params
◆ Panel_OpenFxn
Driver implementation to open a specific panel driver.
Typically this callback is hidden from the end application and is implemented when a new type of panel device needs to be implemented.
- Parameters
-
config | [in] Panel configuration for the specific panel device |
params | [in] User controllable parameters when opening the panel device |
- Returns
- SystemP_SUCCESS on success, else failure
◆ Panel_CloseFxn
Driver implementation to close a specific panel driver.
Typically this callback is hidden from the end application and is implemented when a new type of panel device needs to be implemented.
- Parameters
-
config | [in] Panel configuration for the specific panel device. |
params | [in] User controllable parameters when opening the panel device. |
- Returns
- SystemP_SUCCESS on success, else failure.
◆ Panel_ControlFxn
Driver implementation to control panel using a specific panel driver.
Typically this callback is hidden from the end application and is implemented when a new type of panel device needs to be implemented.
- Parameters
-
config | [in] Panel configuration for the specific panel device. |
params | [in] User controllable parameters. |
cmd | [in] Specific command to panel control. |
cmdArgs | [in] Pointer to arguments associated with command. |
- Returns
- SystemP_SUCCESS on success, else failure
◆ Panel_ResetFxn
Driver implementation to soft reset the panel.
Typically this callback is hidden from the end application and is implemented when a new type of panel device needs to be implemented.
- Parameters
-
config | [in] Panel configuration for the specific panel device. |
params | [in] User controllable parameters when opening the panel device. |
- Returns
- SystemP_SUCCESS on success, else failure.
◆ Panel_open()
Open panel driver.
Global variables Panel_Config gPanelConfig[]
and uint32_t gPanelConfigNum
is instantiated by SysCfg to describe the panel configuration based on user selection in SysCfg.
- Parameters
-
instanceId | [in] Index within Panel_Config gPanelConfig[] denoting the panel driver to open. |
params | [in] Open parameters. |
- Returns
- Handle to panel driver which should be used in subsequent API call.
-
NULL in case of failure.
◆ Panel_close()
Close panel driver.
- Parameters
-
◆ Panel_getHandle()
Get handle to panel driver.
- Parameters
-
- Returns
- Handle to panel driver.
-
NULL in case of failure.
◆ Panel_control()
int32_t Panel_control |
( |
Panel_Handle |
handle, |
|
|
uint32_t |
cmd, |
|
|
void * |
cmdArgs |
|
) |
| |
Control Panel operation using panel specific commands.
Commands can be refered from specific panel interface layer.
- Parameters
-
handle | [in] Panel driver handle from Panel_open. |
cmd | [in] Input command to control panel. |
cmdArgs | [in] Pointer to command arguments. |
- Returns
- SystemP_SUCCESS on success, else failure.
◆ Panel_reset()
Do a reset of the panel.
- Parameters
-
- Returns
- SystemP_SUCCESS on success, else failure.
◆ Panel_getPanelInterfaceIndex()
uint32_t Panel_getPanelInterfaceIndex |
( |
uint32_t |
panelType | ) |
|
Return panel index based on type of panel.
- Parameters
-
panelType | [in] Panel type. |
- Returns
- Panel driver instance index corresponding to the panel type.
◆ Panel_init()
This function initializes the Panel module.
◆ Panel_deinit()
void Panel_deinit |
( |
void |
| ) |
|
This function de-initializes the Panel module.