Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
rts_pulse_output.h
Go to the documentation of this file.
1#ifndef RTS_PULSE_OUTPUT_H
2#define RTS_PULSE_OUTPUT_H
3
4#include <stdbool.h>
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10
31 void (*enable)(struct rts_pulse_output *pulse_output);
32 void (*disable)(struct rts_pulse_output *pulse_output);
33 void (*send_pulse)(struct rts_pulse_output *pulse_output, bool state,
34 uint32_t micros);
35 void (*close)(struct rts_pulse_output *pulse_output);
36
37 union {
38 void *user_data_ptr;
39 int user_data_int;
40 };
41};
42
50void rts_pulse_output_enable(struct rts_pulse_output *pulse_output);
51
59void rts_pulse_output_disable(struct rts_pulse_output *pulse_output);
60
70void rts_pulse_output_send_pulse(struct rts_pulse_output *pulse_output,
71 bool state, uint32_t micros);
72
81void rts_pulse_output_close(struct rts_pulse_output *pulse_output);
82
87#ifdef __cplusplus
88} // extern "C"
89#endif
90
91#endif // RTS_PULSE_OUTPUT_H
Provides an interface for an output of RTS pulses, eg a GPIO or radio.
Definition rts_pulse_output.h:30