InfraredCall - Builder pattern for transmitting infrared signals.
InfraredCall & set_carrier_frequency(uint32_t frequency)
Set the carrier frequency in Hz.
const optional< uint32_t > & get_carrier_frequency() const
Get the carrier frequency.
optional< uint32_t > carrier_frequency_
InfraredCall(Infrared *parent)
Infrared - Base class for infrared remote control implementations.
void dump_config() override
InfraredCall make_call()
Create a call object for transmitting.
void on_call_(const InfraredCall &)
const InfraredTraits & get_traits() const
virtual bool control(const InfraredCall &call)
Perform the actual transmission (called by InfraredCall); false only when no frame was handed to the ...
InfraredTraits & get_traits()
Get the traits for this infrared implementation.
InfraredTraits - Describes the capabilities of an infrared implementation.
uint32_t receiver_frequency_hz_
uint32_t get_receiver_frequency_hz() const
void set_receiver_frequency_hz(uint32_t freq)
Builder for a transmit; Call is the concrete call type and Entity its entity, so the fluent setters r...
Everything an infrared or radio frequency entity does that does not depend on the medium: the remote_...
bool transmit_raw_(const IrRfCallData &call, uint32_t carrier_frequency_hz)
Hands the call's timings to the transmitter; the default transmit path of both entity types.