605ra8_ceu_dma_pump(uint8_t channel,
const uint8_t* src, uint8_t* dst, uint32_t bytes);
ra8_err_t ra8_ceu_exit_stop(void)
Exit the MSTP-gated stop entered by ra8_ceu_enter_stop.
ra8_err_t ra8_ceu_capture_mode_set(ra8_ceu_capture_mode_t mode)
Enable or disable continuous-capture mode (CAPCR.CTNCP).
ra8_err_t ra8_ceu_status_snapshot(ra8_ceu_status_t *out)
Snapshot CSTSR + CDSSR + the active plane into one struct.
ra8_err_t ra8_ceu_clear_status(uint32_t mask)
Clear the CETCR event flags identified by mask.
ra8_err_t ra8_ceu_capture_stop(void)
Stop the in-flight capture started via ra8_ceu_capture_start.
ra8_err_t ra8_ceu_capture_arm(uint8_t *buffer)
Arm a capture into the supplied buffer.
ra8_err_t ra8_ceu_get_status(uint32_t *out_mask)
Snapshot the CEU event-status register (CETCR).
ra8_err_t ra8_ceu_set_dma_buffer(uint8_t *buf, uint32_t len)
Cache a DMAC-target framebuffer for the next ra8_ceu_capture_start call.
ra8_err_t ra8_ceu_dma_pump(uint8_t channel, const uint8_t *src, uint8_t *dst, uint32_t bytes)
Pump a finished CEU bundle into a downstream DMAC channel.
ra8_err_t ra8_ceu_byte_swap_set(const ra8_ceu_byte_swap_t *swap)
Replace CDOCR byte-swap configuration in-place.
ra8_err_t ra8_ceu_data_size_get(uint32_t *out_bytes)
Return the byte count written by the last data-enable capture.
ra8_err_t ra8_ceu_low_pass_set(bool enable)
Enable or disable the input low-pass filter (CLFCR.LPF).
ra8_err_t ra8_ceu_firewall_set(bool enable, uint32_t upper_bound)
Configure the CFWCR firewall window.
ra8_err_t ra8_ceu_plane_swap_force(void)
Force an immediate plane swap (CRCMPR.RA).
void ra8_ceu_dispatch(void)
Drain CEU interrupt events and fire the registered callback.
ra8_err_t ra8_ceu_bundle_size_set(uint32_t size_bytes)
Configure the bundle-write size (CBDSR).
ra8_err_t ra8_ceu_frame_drop_set(uint8_t count)
Update the frame-drop counter (CAPCR.FDRP).
ra8_err_t ra8_ceu_capture_start(uint32_t num_frames)
Start a single or continuous capture into the cached DMA buffer.
ra8_err_t ra8_ceu_init(const ra8_ceu_config_t *cfg)
Power on the CEU and write the full configuration.
ra8_err_t ra8_ceu_plane_b_program(const ra8_ceu_buffers_t *bufs)
Mirror the active configuration into Plane B and arm a swap.
ra8_err_t ra8_ceu_attach_handler(ra8_ceu_event_fn_t fn, void *ctx)
Register a callback invoked by ra8_ceu_dispatch.
ra8_err_t ra8_ceu_interrupts_set(uint32_t mask)
Update the CEIER interrupt-enable bitmask.
ra8_err_t ra8_ceu_capture_disarm(void)
Stop the running capture by clearing CAPSR.CE.
ra8_err_t ra8_ceu_reset(void)
Issue a software reset of the capture state machine.
ra8_err_t ra8_ceu_capture_start_ex(const ra8_ceu_buffers_t *bufs)
Arm a capture using a full address bundle.
ra8_err_t ra8_ceu_enter_stop(void)
Stop active captures and drop the CEU module-stop bit.
ra8_err_t ra8_ceu_deinit(void)
Stop the CEU and drop its module-stop bit.
Capture Engine Unit (CEU) configuration descriptors and types.
ra8_ceu_capture_mode_t
CAPCR.CTNCP single-shot vs continuous capture.
void(* ra8_ceu_event_fn_t)(void *ctx, uint32_t event_mask)
Callback fired by ra8_ceu_dispatch for every CETCR event.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Address bundle programmed into the CDAYR / CDACR family.
CDOCR.COBS / COWS / COLS byte-swap control bundle.
Full configuration descriptor for ra8_ceu_init.
Snapshot of the CEU live-status registers.