ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
cam_ceu.h File Reference

App-specific GPIO diagnostic for the parallel DVP camera signals. More...

#include <stdint.h>
#include "ra8_err.h"
Include dependency graph for cam_ceu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cam_ceu_sync_probe_t
 Snapshot of DVP sync activity observed through GPIO input samples. More...

Functions

ra8_err_t cam_probe_sync_activity (cam_ceu_sync_probe_t *out_probe)
 Measure DVP sync, clock, and data activity before CEU routing.

Detailed Description

App-specific GPIO diagnostic for the parallel DVP camera signals.

Tag
[Ring 6 / APP] {World: S}

Samples the 11 J35 DVP pins as GPIO before the board adapter routes them to CEU. Capture itself uses the reusable ra8_camera_source_ceu backend with caller-owned state and storage; this app module retains only the unusually detailed signal-integrity probe needed by the HIL verdict banner.

Since
0.1.0

Definition in file cam_ceu.h.

Function Documentation

◆ cam_probe_sync_activity()

ra8_err_t cam_probe_sync_activity ( cam_ceu_sync_probe_t * out_probe)

Measure DVP sync, clock, and data activity before CEU routing.

Temporarily samples the camera connector as GPIO to characterize live sensor timing before the CEU peripheral claims the pins.

Parameters
[out]out_probeReceives observed sync transition counts.
Returns
ra8_err_t; ok when the GPIO sampling pass completed.
Return values
k_ra8_okSampling completed and populated out_probe.
k_ra8_err_null_ptrout_probe was null.
Precondition
The sensor is configured and streaming.
The DVP pins have not been claimed by ra8_board_camera_route_parallel_pins.
Postcondition
All temporary DVP GPIO claims are released.
out_probe contains bounded transition and data statistics on success.
Note
This diagnostic must run before parallel-pin routing.
Since
0.1.0

Definition at line 420 of file cam_ceu.c.

References cam_claim_probe_pins(), cam_get_probe_ports(), cam_measure_lines(), cam_measure_sync(), cam_release_probe_pins(), k_ra8_ok, k_ra8_pin_2, k_ra8_pin_3, k_ra8_pin_4, RA8_CHECK_NULL_PTR, and s_ceu_pins.

Referenced by cam_prepare_capture().