rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
gfx_turn_engine_t Struct Reference

An engine that takes a job, ends it later in an interrupt that calls its done callback with the job's user_data, and is waited for: the PPA's shape. More...

#include <gfx_turn.h>

Data Fields

bool(*) submit (void *engine, const gfx_turn_job_t *job)
 Start job.
bool(*) wait (void *engine, uint32_t budget_us)
 Wait for the job's done callback.
void * engine
void * done_ctx

Detailed Description

An engine that takes a job, ends it later in an interrupt that calls its done callback with the job's user_data, and is waited for: the PPA's shape.

Field Documentation

◆ done_ctx

void* gfx_turn_engine_t::done_ctx

every job's user_data: what the done callback needs, the display's state on the panel

◆ engine

void* gfx_turn_engine_t::engine

passed to both

◆ submit

bool(*) gfx_turn_engine_t::submit(void *engine, const gfx_turn_job_t *job)

Start job.

Parameters
enginethe engine
jobthe block; its user_data goes to the done callback
Returns
false when the engine refuses it

◆ wait

bool(*) gfx_turn_engine_t::wait(void *engine, uint32_t budget_us)

Wait for the job's done callback.

Parameters
enginethe engine
budget_usthe longest wait, us
Returns
true when it came in time

The documentation for this struct was generated from the following file: