28 #ifdef CONFIG_CAPTURE_MULTI
30 struct capture *(*capture_init)(uint32_t index);
33 int32_t (*
capture_setCallback)(
struct capture *capture, bool (*callback)(
struct capture *capture, uint32_t index, uint64_t time,
void *data),
void *data);
49 #ifdef CONFIG_INSTANCE_NAME
55 #ifdef CONFIG_CAPTURE_MULTI
59 const struct capture_ops *ops;
62 #ifndef CONFIG_CAPTURE_MULTI
82 int32_t
capture_setCallback(
struct capture *capture,
bool (*callback)(
struct capture *capture, uint32_t index, uint64_t time,
void *data),
void *data);
106 return p->ops->capture_init(index);
110 return p->ops->capture_deinit(capture);
113 inline int32_t
capture_setCallback(
struct capture *capture,
bool (*callback)(
struct capture *capture, uint32_t index, uint64_t time,
void *data),
void *data) {
115 return p->ops->capture_setCallback(capture, callback, data);
120 return p->ops->capture_setPeriod(capture, us);
125 return p->ops->capture_getTime(capture);
130 return p->ops->capture_getChannelTime(capture);