Lcd companion boards support (VKLCD50RTA & VKLCD70RT)
« Back to documentation index
vdc5.c File Reference
VDC5 driver API wrapper function in C interface.
More...
Go to the source code of this file.
Functions
static void init_func (const uint32_t user_num)
User-defined function within R_VDC5_Initialize.
static void DRV_Graphics_Irq_Set (vdc5_int_type_t irq, uint32_t enable)
Interrupt service routine acquisition processing.
drv_graphics_error_t DRV_Graphics_Irq_Handler_Set (vdc5_int_type_t irq, uint16_t num, void(*callback)(vdc5_int_type_t ))
Interrupt callback setup This function performs the following processing:
Enables the interrupt when the pointer to the corresponding interrupt callback function is specified.
drv_graphics_error_t DRV_Graphics_Lcd_Port_Init (PinName *pin, uint32_t pin_count)
LCD output port initialization processing.
drv_graphics_error_t DRV_Graphics_Lvds_Port_Init (PinName *pin, uint32_t pin_count)
LVDS output port initialization processing.
drv_graphics_error_t DRV_Graphics_Dvinput_Port_Init (PinName *pin, uint32_t pin_count)
Digital video inpout port initialization processing.
drv_graphics_error_t DRV_Graphics_Init (drv_lcd_config_t *drv_lcd_config)
Graphics initialization processing.
drv_graphics_error_t DRV_Graphics_Video_init (drv_video_input_sel_t drv_video_input_sel, drv_video_ext_in_config_t *drv_video_ext_in_config)
Video initialization processing.
drv_graphics_error_t DRV_Graphics_Start (drv_graphics_layer_t layer_id)
Start the graphics surface read process.
drv_graphics_error_t DRV_Graphics_Stop (drv_graphics_layer_t layer_id)
Stop the graphics surface read process.
drv_graphics_error_t DRV_Video_Start (drv_video_input_channel_t video_input_ch)
Start the video surface write process.
drv_graphics_error_t DRV_Video_Stop (drv_video_input_channel_t video_input_ch)
Stop the video surface write process.
drv_graphics_error_t DRV_Graphics_Read_Setting (drv_graphics_layer_t layer_id, void *framebuff, uint32_t fb_stride, drv_graphics_format_t gr_format, drv_wr_rd_swa_t wr_rd_swa, drv_rect_t *gr_rect)
Graphics surface read process setting.
drv_graphics_error_t DRV_Graphics_Read_Change (drv_graphics_layer_t layer_id, void *framebuff)
Graphics surface read buffer change process.
drv_graphics_error_t DRV_Graphics_Read_Change_More (drv_graphics_layer_t layer_id, void *framebuff, uint32_t fb_stride, void *slide_dir)
Graphics surface read buffer change process.
drv_graphics_error_t DRV_Video_Write_Setting (drv_video_input_channel_t video_input_ch, drv_graphics_video_col_sys_t col_sys, void *framebuff, uint32_t fb_stride, drv_video_format_t video_format, drv_wr_rd_swa_t wr_rd_swa, uint16_t video_write_buff_vw, uint16_t video_write_buff_hw, drv_video_adc_vinsel_t video_adc_vinsel)
Video surface write process setting.
drv_graphics_error_t DRV_Video_Write_Setting_Digital (void *framebuff, uint32_t fb_stride, drv_video_format_t video_format, drv_wr_rd_swa_t wr_rd_swa, uint16_t video_write_buff_vw, uint16_t video_write_buff_hw, drv_rect_t *cap_area)
Video surface write process setting for digital input.
drv_graphics_error_t DRV_Video_Write_Change (drv_video_input_channel_t video_input_ch, void *framebuff, uint32_t fb_stride)
Video surface write buffer change process.
Detailed Description
VDC5 driver API wrapper function in C interface.
Version: $Rev: $Date::
Definition in file vdc5.c .
Function Documentation
drv_graphics_error_t DRV_Graphics_Dvinput_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
Digital video inpout port initialization processing.
Parameters:
[in] pin : Pin assign for digital video input port
[in] pin_count : Total number of pin assign
Return values:
Definition at line 383 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Init
(
drv_lcd_config_t *
drv_lcd_config )
Graphics initialization processing.
Parameters:
[in] drv_lcd_config : LCD configuration
Return values:
Definition at line 400 of file vdc5.c .
Interrupt callback setup This function performs the following processing:
Enables the interrupt when the pointer to the corresponding interrupt callback function is specified.
Registers the specified interrupt callback function.
Disables the interrupt when the pointer to the corresponding interrupt callback function is not specified. Parameters:
[in] irq : VDC5 interrupt type
[in] num : Interrupt line number
[in] * callback : Interrupt callback function pointer
Return values:
Definition at line 314 of file vdc5.c .
static void DRV_Graphics_Irq_Set
(
vdc5_int_type_t
irq ,
uint32_t
enable
)
[static]
Interrupt service routine acquisition processing.
Description:
This function returns the function pointer to the specified interrupt service routine.
Parameters:
[in] irq : VDC5 interrupt type
[in] enable : VDC5 interrupt enable
Return values:
Definition at line 285 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Lcd_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
LCD output port initialization processing.
Parameters:
[in] pin : Pin assign for LCD output
[in] pin_count : Total number of pin assign
Return values:
Definition at line 347 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Lvds_Port_Init
(
PinName *
pin ,
uint32_t
pin_count
)
LVDS output port initialization processing.
Parameters:
[in] pin : Pin assign for LVDS output
[in] pin_count : Total number of pin assign
Return values:
Definition at line 365 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Change
(
drv_graphics_layer_t
layer_id ,
void *
framebuff
)
Graphics surface read buffer change process.
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
Return values:
Definition at line 897 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Change_More
(
drv_graphics_layer_t
layer_id ,
void *
framebuff ,
uint32_t
fb_stride ,
void *
slide_dir
)
Graphics surface read buffer change process.
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
Return values:
Definition at line 1050 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Read_Setting
(
drv_graphics_layer_t
layer_id ,
void *
framebuff ,
uint32_t
fb_stride ,
drv_graphics_format_t
gr_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
drv_rect_t *
gr_rect
)
Graphics surface read process setting.
Description:
This function supports the following 4 image format. YCbCr422, RGB565, RGB888, ARGB8888
Parameters:
[in] layer_id : Graphics layer ID
[in] framebuff : Base address of the frame buffer
[in] fb_stride : Line offset address of the frame buffer
[in] gr_format : Format of the frame buffer read signal
[in] gr_rect : Graphics display area
Return values:
Definition at line 808 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Start
(
drv_graphics_layer_t
layer_id )
Start the graphics surface read process.
Parameters:
[in] layer_id : Graphics layer ID
Return values:
Definition at line 649 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Stop
(
drv_graphics_layer_t
layer_id )
Stop the graphics surface read process.
Parameters:
[in] layer_id : Graphics layer ID
Return values:
Definition at line 695 of file vdc5.c .
drv_graphics_error_t DRV_Graphics_Video_init
(
drv_video_input_sel_t
drv_video_input_sel ,
drv_video_ext_in_config_t *
drv_video_ext_in_config
)
Video initialization processing.
Parameters:
[in] drv_video_ext_in_config : Video configuration
Return values:
Definition at line 578 of file vdc5.c .
drv_graphics_error_t DRV_Video_Start
(
drv_video_input_channel_t
video_input_ch )
Start the video surface write process.
Parameters:
[in] video_input_ch : Video input channel
Return values:
Definition at line 734 of file vdc5.c .
drv_graphics_error_t DRV_Video_Stop
(
drv_video_input_channel_t
video_input_ch )
Stop the video surface write process.
Parameters:
[in] video_input_ch : Video input channel
Return values:
Definition at line 767 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Change
(
drv_video_input_channel_t
video_input_ch ,
void *
framebuff ,
uint32_t
fb_stride
)
Video surface write buffer change process.
Parameters:
[in] video_input_ch : Video input channle
[in] framebuff : Base address of the frame buffer
[in] fb_stride : Line offset address of the frame buffer
Return values:
Definition at line 1348 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Setting
(
drv_video_input_channel_t
video_input_ch ,
drv_graphics_video_col_sys_t
col_sys ,
void *
framebuff ,
uint32_t
fb_stride ,
drv_video_format_t
video_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
uint16_t
video_write_buff_vw ,
uint16_t
video_write_buff_hw ,
drv_video_adc_vinsel_t
video_adc_vinsel
)
Video surface write process setting.
Description:
This function set the video write process. Input form is weave (progressive) mode fixed. This function supports the following 3 image format. YCbCr422, RGB565, RGB888
Parameters:
[in] video_input_ch : Video input channel
[in] col_sys : Analog video signal color system
[in] adc_vinsel : Video input pin
[in] framebuff : Base address of the frame buffer
[in] fb_stride [byte] : Line offset address of the frame buffer
[in] video_format : Frame buffer video-signal writing format
[in] wr_rd_swa : Frame buffer swap setting
[in] video_write_size_vw [px]: output height
[in] video_write_size_hw [px]: output width
[in] video_adc_vinsel : Input pin control
Return values:
Definition at line 1121 of file vdc5.c .
drv_graphics_error_t DRV_Video_Write_Setting_Digital
(
void *
framebuff ,
uint32_t
fb_stride ,
drv_video_format_t
video_format ,
drv_wr_rd_swa_t
wr_rd_swa ,
uint16_t
video_write_buff_vw ,
uint16_t
video_write_buff_hw ,
drv_rect_t *
cap_area
)
Video surface write process setting for digital input.
Description:
This function set the video write process for digital input. This function supports the following 3 image format. YCbCr422, RGB565, RGB888
Parameters:
[in] framebuff : Base address of the frame buffer
[in] fb_stride [byte] : Line offset address of the frame buffer
[in] video_format : Frame buffer video-signal writing format
[in] wr_rd_swa : Frame buffer swap setting
[in] video_write_size_vw [px]: output height
[in] video_write_size_hw [px]: output width
[in] cap_area : Capture area
Return values:
Definition at line 1273 of file vdc5.c .
static void init_func
(
const uint32_t
user_num )
[static]
User-defined function within R_VDC5_Initialize.
Parameters:
[in] user_num : VDC5 channel
Return values:
Definition at line 234 of file vdc5.c .