![]() |
RZ Flexible Software Package Documentation
Release v4.0.0
|
|
Interface for camera.
The Camera interface provides a general API for configuring and controlling camera panels.
Classes | |
| struct | e_camera_status_t |
| struct | st_camera_callback_args |
| struct | st_cru_buffer_cfg |
| struct | st_cru_cfg |
| struct | st_cru_api |
| struct | st_cru_instance |
Typedefs | |
| typedef struct e_camera_status_t | camera_status_t |
| typedef uint32_t | camera_event_t |
| typedef struct st_camera_callback_args | camera_callback_args_t |
| typedef struct st_cru_buffer_cfg | camera_buffer_cfg_t |
| typedef struct st_cru_cfg | cru_cfg_t |
| typedef void | cru_ctrl_t |
| typedef struct st_cru_api | cru_api_t |
| typedef struct st_cru_instance | camera_instance_t |
Enumerations | |
| enum | camera_state_t |
| struct RZA::e_camera_status_t |
CAMERA status
| Class Members | ||
|---|---|---|
| camera_state_t | state | Current state. |
| uint32_t * | p_buffer | Pointer to active buffer. |
| uint32_t | data_size | Size of data written at the end of one-frame capture. |
| struct RZA::st_camera_callback_args |
CAMERA callback function parameter data
| Class Members | ||
|---|---|---|
| camera_event_t | event | Event causing the callback. |
| uint8_t * | p_buffer | Pointer to buffer that contains captured data. |
| void * | p_context | Placeholder for user data. Set in cru_api_t::open function in cru_cfg_t. |
| struct RZA::st_cru_buffer_cfg |
| struct RZA::st_cru_cfg |
CRU configuration parameters.
Public Attributes | |
| uint16_t | x_capture_start_pixel |
| Horizontal position to start capture. | |
| uint16_t | x_capture_pixels |
| Number of horizontal pixels to capture. | |
| uint16_t | y_capture_start_pixel |
| Vertical position to start capture. | |
| uint16_t | y_capture_pixels |
| Number of vertical lines/pixels to capture. | |
| camera_buffer_cfg_t | buffer_cfg |
| Buffer Configuration. | |
| void(* | p_callback )(camera_callback_args_t *p_args) |
| Callback provided when a image conversion ISR occurs. | |
| void const * | p_extend |
| Placeholder for user data. | |
| struct RZA::st_cru_api |
CRU functions implemented at the HAL layer will follow this API.
Public Attributes | |
| fsp_err_t(* | open )(cru_ctrl_t *const p_ctrl, cru_cfg_t const *const p_cfg) |
| fsp_err_t(* | close )(cru_ctrl_t *const p_ctrl) |
| fsp_err_t(* | captureStart )(cru_ctrl_t *const p_ctrl) |
| fsp_err_t(* | captureStop )(cru_ctrl_t *const p_ctrl) |
| fsp_err_t(* | statusGet )(cru_ctrl_t *const p_ctrl, camera_status_t *p_status) |
| fsp_err_t(* open) (cru_ctrl_t *const p_ctrl, cru_cfg_t const *const p_cfg) |
Initial configuration.
| [in] | p_ctrl | Pointer to control structure. |
| [in] | p_cfg | Pointer to pin configuration structure. |
| fsp_err_t(* close) (cru_ctrl_t *const p_ctrl) |
Closes the driver and allows reconfiguration. May reduce power consumption.
| [in] | p_ctrl | Pointer to control structure. |
| fsp_err_t(* captureStart) (cru_ctrl_t *const p_ctrl) |
Start a capture.
| [in] | p_ctrl | Pointer to control structure. |
| fsp_err_t(* captureStop) (cru_ctrl_t *const p_ctrl) |
Stop a capture
| [in] | p_ctrl | Pointer to control structure. |
| fsp_err_t(* statusGet) (cru_ctrl_t *const p_ctrl, camera_status_t *p_status) |
Check scan status.
| [in] | p_ctrl | Pointer to control handle structure |
| [out] | p_status | Pointer to store current status in |
| struct RZA::st_cru_instance |
This structure encompasses everything that is needed to use an instance of this interface.
| Class Members | ||
|---|---|---|
| cru_ctrl_t * | p_ctrl | Pointer to the control structure for this instance. |
| cru_cfg_t const * | p_cfg | Pointer to the configuration structure for this instance. |
| cru_api_t const * | p_api | Pointer to the API structure for this instance. |
| typedef struct e_camera_status_t camera_status_t |
CAMERA status Please refer to the struct e_camera_status_t.
| typedef uint32_t camera_event_t |
CAMERA callback event - see implementation
| typedef struct st_camera_callback_args camera_callback_args_t |
CAMERA callback function parameter data Please refer to the struct st_camera_callback_args.
| typedef struct st_cru_buffer_cfg camera_buffer_cfg_t |
Buffer addresses Please refer to the struct st_cru_buffer_cfg.
| typedef struct st_cru_cfg cru_cfg_t |
CRU configuration parameters. Please refer to the struct st_cru_cfg.
| typedef void cru_ctrl_t |
CRU control block. Allocate an instance specific control block to pass into the CRU API calls.
| typedef struct st_cru_api cru_api_t |
CRU functions implemented at the HAL layer will follow this API. Please refer to the struct st_cru_api.
| typedef struct st_cru_instance camera_instance_t |
This structure encompasses everything that is needed to use an instance of this interface. Please refer to the struct st_cru_instance.
| enum camera_state_t |