Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
gr_peach_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:
| |
| 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_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 gr_peach_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:
-
Error code
Definition at line 377 of file gr_peach_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:
-
Error code
Definition at line 394 of file gr_peach_vdc5.c.
| drv_graphics_error_t DRV_Graphics_Irq_Handler_Set | ( | vdc5_int_type_t | irq, |
| uint16_t | num, | ||
| void(*)(vdc5_int_type_t) | callback | ||
| ) |
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:
-
Error code
Definition at line 305 of file gr_peach_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:
-
None
Definition at line 275 of file gr_peach_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:
-
Error code
Definition at line 341 of file gr_peach_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:
-
Error code
Definition at line 359 of file gr_peach_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:
-
Error code
Definition at line 878 of file gr_peach_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:
-
Error code
Definition at line 784 of file gr_peach_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:
-
drv_graphics_error_t
Definition at line 621 of file gr_peach_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:
-
Error code
Definition at line 668 of file gr_peach_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:
-
Error code
Definition at line 562 of file gr_peach_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:
-
Error code
Definition at line 708 of file gr_peach_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:
-
Error code
Definition at line 742 of file gr_peach_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:
-
Error code
Definition at line 1163 of file gr_peach_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:
-
Error code
Definition at line 942 of file gr_peach_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:
-
Error code
Definition at line 1083 of file gr_peach_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:
-
None
Definition at line 223 of file gr_peach_vdc5.c.
Generated on Tue Jul 12 2022 14:47:52 by
1.7.2
