Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
rts_pulse_output Struct Reference

Provides an interface for an output of RTS pulses, eg a GPIO or radio. More...

#include <rts_pulse_output.h>

Inherited by RTSPulseOutput [protected].

Related Symbols

(Note that these are not member symbols.)

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_*()
 

Detailed Description

Provides an interface for an output of RTS pulses, eg a GPIO or radio.

Bundled implementations are provided for Linux/Raspberry Pi gpiod (rts_pulse_output_init_gpiod) and ESP-IDF GPIO (rts_pulse_output_init_espidf_gpio).

Implementations must define the enable, disable, and send_pulse functions and set the function pointers in the rts_pulse_output struct.


The documentation for this struct was generated from the following files: