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

What the card's task gives the runner: the card, the bench as it stands, CANCEL, the progress, the look at the slot, and the room of one chunk. More...

#include <fm_req.h>

Data Fields

const fm_io_t * io
void(*) bench (fm_bench_t *out, void *ctx)
 The bench now: ARMED, the logger's open files, the IOmcu link. The runner sets the log folders from the request after it.
bool(*) cancelled (void *ctx)
 Whether CANCEL was pressed since the request was handed over.
void(*) progress (uint64_t done, uint64_t total, void *ctx)
 A job's bytes done after a step, for the progress box; may be NULL.
void(*) look (void *ctx)
 Look at the slot, for a request with look set; may be NULL.
uint8_t * chunk
size_t size
void * ctx

Detailed Description

What the card's task gives the runner: the card, the bench as it stands, CANCEL, the progress, the look at the slot, and the room of one chunk.

Field Documentation

◆ bench

void(*) fm_runner_t::bench(fm_bench_t *out, void *ctx)

The bench now: ARMED, the logger's open files, the IOmcu link. The runner sets the log folders from the request after it.

Parameters
outtakes the bench; its pointers have to outlive the step
ctxthe runner's context

◆ cancelled

bool(*) fm_runner_t::cancelled(void *ctx)

Whether CANCEL was pressed since the request was handed over.

Parameters
ctxthe runner's context
Returns
true to stop the job at its next chunk

◆ chunk

uint8_t* fm_runner_t::chunk

room for one chunk of a copy

◆ ctx

void* fm_runner_t::ctx

passed to every function

◆ io

const fm_io_t* fm_runner_t::io

the card

◆ look

void(*) fm_runner_t::look(void *ctx)

Look at the slot, for a request with look set; may be NULL.

Parameters
ctxthe runner's context

◆ progress

void(*) fm_runner_t::progress(uint64_t done, uint64_t total, void *ctx)

A job's bytes done after a step, for the progress box; may be NULL.

Parameters
donebytes done
totalbytes to do; 0 for a single call
ctxthe runner's context

◆ size

size_t fm_runner_t::size

bytes chunk takes; FM_CHUNK on the panel


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