Open RTS
Full implementation of the Somfy RTS protocol
|
Provides an interface for an output of RTS pulses, eg a GPIO or radio. More...
#include <RTSPulseOutput.hpp>
Inherits rts_pulse_output.
Inherited by RTSPulseOutput_GPIO.
Public Member Functions | |
void | enable () |
Enable the pulse output. | |
void | disable () |
Disable the pulse output. | |
void | sendPulse (bool state, uint32_t micros) |
Instruct the rts_pulse_output to output a pulse. | |
Friends | |
class | RTSRemote |
Additional Inherited Members | |
Related Symbols inherited from rts_pulse_output | |
void | rts_pulse_output_init_espidf_gpio (struct rts_pulse_output *pulse_output, uint8_t data_pin) |
Initialize an rts_pulse_output which sends pulses to the specified ESP-IDF GPIO pin. | |
void | rts_pulse_output_init_gpiod (struct rts_pulse_output *pulse_output, char *device, uint8_t data_pin) |
Initialize an rts_pulse_output which sends pulses to the specified Linux gpiod device. | |
void | rts_pulse_output_enable (struct rts_pulse_output *pulse_output) |
Enable the pulse output. | |
void | rts_pulse_output_disable (struct rts_pulse_output *pulse_output) |
Disable the pulse output. | |
void | rts_pulse_output_send_pulse (struct rts_pulse_output *pulse_output, bool state, uint32_t micros) |
Instruct the rts_pulse_output to output a pulse. | |
void | rts_pulse_output_close (struct rts_pulse_output *pulse_output) |
Close and free resources allocated via a previous call to rts_pulse_output_init_*() | |
Provides an interface for an output of RTS pulses, eg a GPIO or radio.
Implementations must define the enable
, disable
, and send_pulse
functions and set the function pointers in the rts_pulse_output struct.
void RTSPulseOutput::sendPulse | ( | bool | state, |
uint32_t | micros | ||
) |
Instruct the rts_pulse_output to output a pulse.
state | boolean pulse logic state, true = HIGH, false = LOW |
micros | the time the pulse was in this state, in microseconds |