86XRT_NONNULL_ALL
static inline void
129XRT_NONNULL_ALL
static inline int
132 return source->
add_sink(source, sink);
142XRT_NONNULL_ALL
static inline void
Marks beginning of a camera exposure, pushed from the source to the sink.
Definition t_time_sync.h:29
uint64_t frame_period_ns
Estimated frame period. May be 0 if unknown.
Definition t_time_sync.h:43
uint32_t sequence_id
The sequence ID of this frame.
Definition t_time_sync.h:39
int64_t timestamp_ns
The timestamp of the event, in local monotonic domain. See os_monotonic_get_ns.
Definition t_time_sync.h:41
uint64_t exposure_time_ns
Estimated exposure time of the frame. May be 0 if unknown.
Definition t_time_sync.h:45
A time sync sink is a component that receives timing events from a stable timing source,...
Definition t_time_sync.h:69
void(* push_timing_event)(struct t_timing_event_sink *sink, const struct t_timing_event *event)
A function that the timing event sink will call to push a new timing event.
Definition t_time_sync.h:76
static XRT_NONNULL_ALL void t_timing_event_sink_push_timing_event(struct t_timing_event_sink *sink, const struct t_timing_event *event)
Helper function for t_timing_event_sink::push_timing_event.
Definition t_time_sync.h:87
A time sync source is a component that generates timing events for an t_timing_event_sink to consume.
Definition t_time_sync.h:102
static XRT_NONNULL_ALL int t_timing_event_source_add_sink(struct t_timing_event_source *source, struct t_timing_event_sink *sink)
Helper function for t_timing_event_source::add_sink.
Definition t_time_sync.h:130
int(* add_sink)(struct t_timing_event_source *source, struct t_timing_event_sink *sink)
Adds an event sink to this source.
Definition t_time_sync.h:111
static XRT_NONNULL_ALL void t_timing_event_source_remove_sink(struct t_timing_event_source *source, struct t_timing_event_sink *sink)
Helper function for t_timing_event_source::remove_sink.
Definition t_time_sync.h:143
void(* remove_sink)(struct t_timing_event_source *source, struct t_timing_event_sink *sink)
Removes an event sink from this source.
Definition t_time_sync.h:119
Definition t_time_sync.h:49
t_timing_event_type
Definition t_time_sync.h:20
@ T_TIMING_EVENT_TYPE_CAMERA_EXPOSURE_START
Marks the beginning of an exposure.
Definition t_time_sync.h:22
Common defines and enums for XRT.