RA Flexible Software Package Documentation
Release v5.6.0
|
|
Interface for LCD panel displays.
The display interface provides standard display functionality:
Data Structures | |
struct | display_timing_t |
struct | display_color_t |
struct | display_coordinate_t |
struct | display_brightness_t |
struct | display_contrast_t |
struct | display_correction_t |
struct | gamma_correction_t |
struct | display_gamma_correction_t |
struct | display_clut_t |
struct | display_colorkeying_cfg_t |
struct | display_colorkeying_layer_t |
struct | display_input_cfg_t |
struct | display_output_cfg_t |
struct | display_layer_t |
struct | display_callback_args_t |
struct | display_cfg_t |
struct | display_runtime_cfg_t |
struct | display_clut_cfg_t |
struct | display_status_t |
struct | display_api_t |
struct | display_instance_t |
Typedefs | |
typedef void | display_ctrl_t |
Enumerations | |
enum | display_frame_layer_t |
enum | display_state_t |
enum | display_event_t |
enum | display_in_format_t |
enum | display_out_format_t |
enum | display_endian_t |
enum | display_color_order_t |
enum | display_signal_polarity_t |
enum | display_sync_edge_t |
enum | display_fade_control_t |
enum | display_fade_status_t |
enum | display_color_keying_t |
enum | display_data_swap_t |
struct display_timing_t |
Display signal timing setting
Data Fields | ||
---|---|---|
uint16_t | total_cyc | Total cycles in one line or total lines in one frame. |
uint16_t | display_cyc | Active video cycles or lines. |
uint16_t | back_porch | Back porch cycles or lines. |
uint16_t | sync_width | Sync signal asserting width. |
display_signal_polarity_t | sync_polarity | Sync signal polarity. |
struct display_color_t |
RGB Color setting
struct display_coordinate_t |
struct display_brightness_t |
struct display_contrast_t |
struct display_correction_t |
Color correction setting
Data Fields | ||
---|---|---|
display_brightness_t | brightness | Brightness. |
display_contrast_t | contrast | Contrast. |
struct gamma_correction_t |
struct display_gamma_correction_t |
Gamma correction setting
Data Fields | ||
---|---|---|
gamma_correction_t | r | Gamma correction for R channel. |
gamma_correction_t | g | Gamma correction for G channel. |
gamma_correction_t | b | Gamma correction for B channel. |
struct display_clut_t |
struct display_colorkeying_cfg_t |
Color Keying setting
Data Fields | ||
---|---|---|
display_color_t | src_color | Source color. |
display_color_t | dst_color | Destination color. |
display_color_keying_t | enable_ckey | Select enable or disable. |
struct display_colorkeying_layer_t |
Color Keying layer setting
struct display_input_cfg_t |
Graphics plane input configuration structure
Data Fields | ||
---|---|---|
uint32_t * | p_base | Base address to the frame buffer. |
uint16_t | hsize | Horizontal pixel size in a line. |
uint16_t | vsize | Vertical pixel size in a frame. |
uint32_t | hstride | Memory stride (bytes) in a line. |
display_in_format_t | format | Input format setting. |
bool | line_descending_enable | Line descending enable. |
bool | lines_repeat_enable | Line repeat enable. |
uint16_t | lines_repeat_times | Expected number of line repeating. |
struct display_output_cfg_t |
Display output configuration structure
Data Fields | ||
---|---|---|
display_timing_t | htiming | Horizontal display cycle setting. |
display_timing_t | vtiming | Vertical display cycle setting. |
display_out_format_t | format | Output format setting. |
display_endian_t | endian | Bit order of output data. |
display_color_order_t | color_order | Color order in pixel. |
display_signal_polarity_t | data_enable_polarity | Data Enable signal polarity. |
display_sync_edge_t | sync_edge | Signal sync edge selection. |
display_color_t | bg_color | Background color. |
display_brightness_t | brightness | Brightness setting. |
display_contrast_t | contrast | Contrast setting. |
display_gamma_correction_t * | p_gamma_correction | Pointer to gamma correction setting. |
bool | dithering_on | Dithering on/off. |
struct display_layer_t |
Graphics layer blend setup parameter structure
Data Fields | ||
---|---|---|
display_coordinate_t | coordinate | Blending location (starting point of image) |
display_color_t | bg_color | Color outside region. |
display_fade_control_t | fade_control | Layer fade-in/out control on/off. |
uint8_t | fade_speed | Layer fade-in/out frame rate. |
struct display_callback_args_t |
Display callback parameter definition
Data Fields | ||
---|---|---|
display_event_t | event | Event code. |
void const * | p_context | Context provided to user during callback. |
struct display_cfg_t |
Display main configuration structure
Data Fields | |
display_input_cfg_t | input [2] |
Graphics input frame setting. More... | |
display_output_cfg_t | output |
Graphics output frame setting. | |
display_layer_t | layer [2] |
Graphics layer blend setting. | |
uint8_t | line_detect_ipl |
Line detect interrupt priority. | |
uint8_t | underflow_1_ipl |
Underflow 1 interrupt priority. | |
uint8_t | underflow_2_ipl |
Underflow 2 interrupt priority. | |
IRQn_Type | line_detect_irq |
Line detect interrupt vector. | |
IRQn_Type | underflow_1_irq |
Underflow 1 interrupt vector. | |
IRQn_Type | underflow_2_irq |
Underflow 2 interrupt vector. | |
void(* | p_callback )(display_callback_args_t *p_args) |
Pointer to callback function. More... | |
void const * | p_context |
User defined context passed into callback function. | |
void const * | p_extend |
Display hardware dependent configuration. More... | |
display_input_cfg_t display_cfg_t::input[2] |
Graphics input frame setting.
Generic configuration for display devices
void(* display_cfg_t::p_callback) (display_callback_args_t *p_args) |
Pointer to callback function.
Configuration for display event processing
void const* display_cfg_t::p_extend |
Display hardware dependent configuration.
Pointer to display peripheral specific configuration
struct display_runtime_cfg_t |
Display main configuration structure
Data Fields | ||
---|---|---|
display_input_cfg_t | input |
Graphics input frame setting. Generic configuration for display devices |
display_layer_t | layer | Graphics layer alpha blending setting. |
struct display_clut_cfg_t |
struct display_status_t |
Display Status
Data Fields | ||
---|---|---|
display_state_t | state | Status of display module. |
display_fade_status_t | fade_status[DISPLAY_FRAME_LAYER_2+1] | Status of fade-in/fade-out status. |
struct display_api_t |
Shared Interface definition for display peripheral
fsp_err_t(* display_api_t::open) (display_ctrl_t *const p_ctrl, display_cfg_t const *const p_cfg) |
Open display device.
[in,out] | p_ctrl | Pointer to display interface control block. Must be declared by user. Value set here. |
[in] | p_cfg | Pointer to display configuration structure. All elements of this structure must be set by user. |
fsp_err_t(* display_api_t::close) (display_ctrl_t *const p_ctrl) |
Close display device.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* display_api_t::start) (display_ctrl_t *const p_ctrl) |
Display start.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* display_api_t::stop) (display_ctrl_t *const p_ctrl) |
Display stop.
[in] | p_ctrl | Pointer to display interface control block. |
fsp_err_t(* display_api_t::layerChange) (display_ctrl_t const *const p_ctrl, display_runtime_cfg_t const *const p_cfg, display_frame_layer_t frame) |
Change layer parameters at runtime.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | p_cfg | Pointer to run-time layer configuration structure. |
[in] | frame | Number of graphic frames. |
fsp_err_t(* display_api_t::bufferChange) (display_ctrl_t const *const p_ctrl, uint8_t *const framebuffer, display_frame_layer_t frame) |
Change layer framebuffer pointer.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | framebuffer | Pointer to desired framebuffer. |
[in] | frame | Number of graphic frames. |
fsp_err_t(* display_api_t::correction) (display_ctrl_t const *const p_ctrl, display_correction_t const *const p_param) |
Color correction.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | param | Pointer to color correction configuration structure. |
fsp_err_t(* display_api_t::clut) (display_ctrl_t const *const p_ctrl, display_clut_cfg_t const *const p_clut_cfg, display_frame_layer_t layer) |
Set CLUT for display device.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | p_clut_cfg | Pointer to CLUT configuration structure. |
[in] | layer | Layer number corresponding to the CLUT. |
fsp_err_t(* display_api_t::clutEdit) (display_ctrl_t const *const p_ctrl, display_frame_layer_t layer, uint8_t index, uint32_t color) |
Set CLUT element for display device.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | layer | Layer number corresponding to the CLUT. |
[in] | index | CLUT element index. |
[in] | color | Desired CLUT index color. |
fsp_err_t(* display_api_t::colorKeySet) (display_ctrl_t const *const p_ctrl, display_colorkeying_layer_t key_cfg, display_frame_layer_t layer) |
Configure color keying.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | key_cfg | Pointer to color keying configuration. |
[in] | layer | Layer to apply color keying. |
fsp_err_t(* display_api_t::statusGet) (display_ctrl_t const *const p_ctrl, display_status_t *const p_status) |
Get status for display device.
[in] | p_ctrl | Pointer to display interface control block. |
[in] | status | Pointer to display interface status structure. |
struct display_instance_t |
This structure encompasses everything that is needed to use an instance of this interface.
Data Fields | ||
---|---|---|
display_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
display_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
display_api_t const * | p_api | Pointer to the API structure for this instance. |
typedef void display_ctrl_t |
Display control block. Allocate an instance specific control block to pass into the display API calls.Display control block
enum display_state_t |
enum display_event_t |
enum display_in_format_t |
Input format setting
enum display_out_format_t |
enum display_endian_t |
enum display_sync_edge_t |
enum display_data_swap_t |
Data swap settings