HPM SDK
HPMicro Software Development Kit
hpm_panel.c File Reference
#include "hpm_panel.h"
#include "hpm_clock_drv.h"

Functions

hpm_panel_thpm_panel_find_device_default (void)
 Find default panel. More...
 
hpm_panel_thpm_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_thpm_panel_get_timing (hpm_panel_t *panel)
 Get panel timing. 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_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...
 

Variables

hpm_panel_t panel_tm070rdh13
 
hpm_panel_t panel_cc10128007
 
hpm_panel_t panel_mc10128007_31b
 
hpm_panel_t panel_tm103xdgp01
 
static hpm_panel_tpanel_list []
 

Function Documentation

◆ hpm_panel_delay_ms()

void hpm_panel_delay_ms ( uint32_t  ms)

Delay specified milliseconds.

Parameters
[in]msexpected delay interval in milliseconds

◆ hpm_panel_delay_us()

void hpm_panel_delay_us ( uint32_t  us)

Delay specified microseconds.

Parameters
[in]usexpected delay interval in microseconds

◆ hpm_panel_find_device()

hpm_panel_t* hpm_panel_find_device ( const char *  name)

Find panel for name.

Parameters
[in]nameof panel
Returns
pointer of panel instance

◆ hpm_panel_find_device_default()

hpm_panel_t* hpm_panel_find_device_default ( void  )

Find default panel.

Returns
pointer of panel instance

◆ hpm_panel_get_backlight()

uint8_t hpm_panel_get_backlight ( hpm_panel_t panel)

Get backlight value.

Parameters
[in]panelpointer of panel instance
Returns
percent of backlight [0 - 100]

◆ hpm_panel_get_if_type()

hpm_panel_if_type_t hpm_panel_get_if_type ( hpm_panel_t panel)

Get panel interface type.

Parameters
[in]panelpointer of panel instance
Returns
panel interface type hpm_panel_if_type_t

◆ hpm_panel_get_name()

const char* hpm_panel_get_name ( hpm_panel_t panel)

Get panel name.

Parameters
panelpointer of panel instance
Returns
panel name

◆ hpm_panel_get_timing()

const hpm_panel_timing_t* hpm_panel_get_timing ( hpm_panel_t panel)

Get panel timing.

Parameters
panelpointer of panel instance
Returns
pointer of timing

◆ hpm_panel_init()

void hpm_panel_init ( hpm_panel_t panel)

Initialize the panel.

Parameters
[in]panelpointer of panel instance

◆ hpm_panel_power_off()

void hpm_panel_power_off ( hpm_panel_t panel)

Power off the panel.

Parameters
[in]panelpointer of panel instance

◆ hpm_panel_power_on()

void hpm_panel_power_on ( hpm_panel_t panel)

Power on the panel.

Parameters
[in]panelpointer of panel instance

◆ hpm_panel_register_interface()

void hpm_panel_register_interface ( hpm_panel_t panel,
hpm_panel_hw_interface_t hw_if 
)

Register platform level hardware interface.

Parameters
[in]panelpointer of panel instance
[in]hw_ifpointer of hardware interface

◆ hpm_panel_reset()

void hpm_panel_reset ( hpm_panel_t panel)

Reset the panel.

Parameters
[in]panelpointer of panel instance

◆ hpm_panel_set_backlight()

void hpm_panel_set_backlight ( hpm_panel_t panel,
uint16_t  percent 
)

Set backlight value.

Parameters
[in]panelpointer of panel instance
[in]percentpercent of backlight [0 - 100]

Variable Documentation

◆ panel_cc10128007

hpm_panel_t panel_cc10128007
extern

◆ panel_list

hpm_panel_t* panel_list[]
static
Initial value:
= {
}

◆ panel_mc10128007_31b

hpm_panel_t panel_mc10128007_31b
extern

◆ panel_tm070rdh13

hpm_panel_t panel_tm070rdh13
extern

◆ panel_tm103xdgp01

hpm_panel_t panel_tm103xdgp01
extern