Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSPulseSource Class Reference

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

#include <RTSPulseSource.hpp>

Inherits rts_pulse_source.

Inherited by RTSPulseSource_GPIO.

Public Member Functions

void enable ()
 Enable the pulse source.
 
void disable ()
 Disable the pulse source.
 
void update ()
 Check for new pulse data.
 
void attach (RTSFrameBuilder *frameBuilder)
 Attach an observer.
 

Friends

class RTSReceiver
 

Additional Inherited Members

Detailed Description

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

Implementations must define the enable, disable, and update functions and set the function pointers in the rts_pulse_source struct.

When a new pulse is detected in rts_pulse_source_update, implementations should call rts_frame_builder_handle_pulse on the observer.

Member Function Documentation

◆ update()

void RTSPulseSource::update ( )

Check for new pulse data.

Should be called every loop() if the pulse source does not keep itself updated (eg. using interrupts).

◆ attach()

void RTSPulseSource::attach ( RTSFrameBuilder frameBuilder)

Attach an observer.

Parameters
frameBuilderthe RTSFrameBuilder instance observing this source.

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