|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
A pin driver. More...
#include <hitec_wire.h>
Data Fields | |
| void * | ctx |
| bool(*) | start (void *ctx, const hitec_xfer_t *xfer) |
| bool(*) | poll (void *ctx, hitec_capture_t *out) |
Reports the end of a run: false while it runs; true once, with out filled, after it has ended. | |
| uint32_t(*) | now_us (void *ctx) |
A pin driver.
Non-blocking; there is no delay function.
xfer and returns at once; false when the line is not open, a transaction runs, xfer is not valid or the line cannot make it (another family, a level its drive does not make).out and returns true, once.| void* hitec_driver_t::ctx |
driver state, passed to each function
| uint32_t(*) hitec_driver_t::now_us(void *ctx) |
us, may wrap
| bool(*) hitec_driver_t::poll(void *ctx, hitec_capture_t *out) |
Reports the end of a run: false while it runs; true once, with out filled, after it has ended.
| ctx | Driver state, as in the struct. |
| out | Receives the capture when the run has ended. |
| bool(*) hitec_driver_t::start(void *ctx, const hitec_xfer_t *xfer) |
begin a run