1#ifndef RTS_PULSE_SOURCE_H
2#define RTS_PULSE_SOURCE_H
44 uint64_t last_updated;
void rts_pulse_source_update(struct rts_pulse_source *pulse_source)
Check for new pulse data, should be called every loop()
Definition: rts_pulse_source.c:31
void rts_pulse_source_disable(struct rts_pulse_source *pulse_source)
Disable the pulse source.
Definition: rts_pulse_source.c:21
void rts_pulse_source_enable(struct rts_pulse_source *pulse_source)
Enable the pulse source.
Definition: rts_pulse_source.c:11
void rts_pulse_source_close(struct rts_pulse_source *pulse_source)
Close and free any resources allocated via a previous call to rts_pulse_source_init_*()
Definition: rts_pulse_source.c:41
void rts_pulse_source_attach(struct rts_pulse_source *pulse_source, struct rts_frame_builder *frame_builder)
Attach an observer.
Definition: rts_pulse_source.c:5
Assembles pulses received via rts_frame_builder_handle_pulse, into a complete rts_frame,...
Definition: rts_frame_builder.h:36
Provides an interface for a source of RTS pulses, eg a GPIO or radio.
Definition: rts_pulse_source.h:35