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
8
extern
"C"
{
9
#endif
10
30
struct
rts_pulse_output
{
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
50
void
rts_pulse_output_enable(
struct
rts_pulse_output
*pulse_output);
51
59
void
rts_pulse_output_disable(
struct
rts_pulse_output
*pulse_output);
60
70
void
rts_pulse_output_send_pulse(
struct
rts_pulse_output
*pulse_output,
71
bool
state, uint32_t micros);
72
81
void
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
rts_pulse_output
Provides an interface for an output of RTS pulses, eg a GPIO or radio.
Definition
rts_pulse_output.h:30
src
openrts
rts_pulse_output.h
Generated by
1.9.8