ESPHome  2024.11.1
Public Member Functions | Data Fields | Static Public Attributes | Protected Attributes
esphome::lightwaverf::LwTx Class Reference

#include <LwTx.h>

Public Member Functions

void lwtx_setup (InternalGPIOPin *pin, uint8_t repeats, bool inverted, int u_sec)
 Set things up to transmit LightWaveRF 434Mhz messages. More...
 
void lwtx_set_tick_counts (uint8_t low_count, uint8_t high_count, uint8_t trail_count, uint8_t gap_count)
 
void lwtx_set_gap_multiplier (uint8_t gap_multiplier)
 
void lwtx_settranslate (bool txtranslate)
 Set translate mode. More...
 
bool lwtx_free ()
 Check for send free. More...
 
void lwtx_send (const std::vector< uint8_t > &msg)
 Send a LightwaveRF message (10 nibbles in bytes) More...
 
void lwtx_setaddr (const uint8_t *addr)
 Set 5 char address for future messages. More...
 
void lwtx_cmd (uint8_t command, uint8_t parameter, uint8_t room, uint8_t device)
 Send a LightwaveRF message (10 nibbles in bytes) More...
 
void lw_timer_start ()
 
void lw_timer_stop ()
 

Data Fields

uint8_t tx_low_count = 3
 
uint8_t tx_high_count = 2
 
uint8_t tx_trail_count = 1
 
uint8_t tx_toggle_count = 3
 
uint8_t tx_repeats = 12
 
uint8_t txon = 1
 
uint8_t txoff = 0
 
bool tx_msg_active = false
 
bool tx_translate = true
 
uint8_t tx_buf [TX_MSGLEN]
 
uint8_t tx_repeat = 0
 
uint8_t tx_state = 0
 
uint16_t tx_gap_repeat = 0
 
uint8_t tx_gap_count = 33
 
uint32_t espPeriod = 0
 
uint32_t espNext = 0
 
uint8_t tx_gap_multiplier = 0
 
uint8_t tx_bit_mask = 0
 
uint8_t tx_num_bytes = 0
 
InternalGPIOPintx_pin
 

Static Public Attributes

static const uint8_t TX_MSGLEN = 10
 

Protected Attributes

uint32_t duty_on_
 
uint32_t duty_off_
 

Detailed Description

Definition at line 20 of file LwTx.h.

Member Function Documentation

◆ lw_timer_start()

void esphome::lightwaverf::LwTx::lw_timer_start ( )

Definition at line 188 of file LwTx.cpp.

◆ lw_timer_stop()

void esphome::lightwaverf::LwTx::lw_timer_stop ( )

Definition at line 198 of file LwTx.cpp.

◆ lwtx_cmd()

void esphome::lightwaverf::LwTx::lwtx_cmd ( uint8_t  command,
uint8_t  parameter,
uint8_t  room,
uint8_t  device 
)

Send a LightwaveRF message (10 nibbles in bytes)

Definition at line 135 of file LwTx.cpp.

◆ lwtx_free()

bool esphome::lightwaverf::LwTx::lwtx_free ( )

Check for send free.

Definition at line 105 of file LwTx.cpp.

◆ lwtx_send()

void esphome::lightwaverf::LwTx::lwtx_send ( const std::vector< uint8_t > &  msg)

Send a LightwaveRF message (10 nibbles in bytes)

Definition at line 110 of file LwTx.cpp.

◆ lwtx_set_gap_multiplier()

void esphome::lightwaverf::LwTx::lwtx_set_gap_multiplier ( uint8_t  gap_multiplier)

Definition at line 186 of file LwTx.cpp.

◆ lwtx_set_tick_counts()

void esphome::lightwaverf::LwTx::lwtx_set_tick_counts ( uint8_t  low_count,
uint8_t  high_count,
uint8_t  trail_count,
uint8_t  gap_count 
)

Definition at line 179 of file LwTx.cpp.

◆ lwtx_setaddr()

void esphome::lightwaverf::LwTx::lwtx_setaddr ( const uint8_t *  addr)

Set 5 char address for future messages.

Definition at line 126 of file LwTx.cpp.

◆ lwtx_settranslate()

void esphome::lightwaverf::LwTx::lwtx_settranslate ( bool  txtranslate)

Set translate mode.

Definition at line 30 of file LwTx.cpp.

◆ lwtx_setup()

void esphome::lightwaverf::LwTx::lwtx_setup ( InternalGPIOPin pin,
uint8_t  repeats,
bool  inverted,
int  u_sec 
)

Set things up to transmit LightWaveRF 434Mhz messages.

Definition at line 149 of file LwTx.cpp.

Field Documentation

◆ duty_off_

uint32_t esphome::lightwaverf::LwTx::duty_off_
protected

Definition at line 90 of file LwTx.h.

◆ duty_on_

uint32_t esphome::lightwaverf::LwTx::duty_on_
protected

Definition at line 89 of file LwTx.h.

◆ espNext

uint32_t esphome::lightwaverf::LwTx::espNext = 0

Definition at line 76 of file LwTx.h.

◆ espPeriod

uint32_t esphome::lightwaverf::LwTx::espPeriod = 0

Definition at line 75 of file LwTx.h.

◆ tx_bit_mask

uint8_t esphome::lightwaverf::LwTx::tx_bit_mask = 0

Definition at line 83 of file LwTx.h.

◆ tx_buf

uint8_t esphome::lightwaverf::LwTx::tx_buf[TX_MSGLEN]

Definition at line 68 of file LwTx.h.

◆ tx_gap_count

uint8_t esphome::lightwaverf::LwTx::tx_gap_count = 33

Definition at line 74 of file LwTx.h.

◆ tx_gap_multiplier

uint8_t esphome::lightwaverf::LwTx::tx_gap_multiplier = 0

Definition at line 81 of file LwTx.h.

◆ tx_gap_repeat

uint16_t esphome::lightwaverf::LwTx::tx_gap_repeat = 0

Definition at line 71 of file LwTx.h.

◆ tx_high_count

uint8_t esphome::lightwaverf::LwTx::tx_high_count = 2

Definition at line 54 of file LwTx.h.

◆ tx_low_count

uint8_t esphome::lightwaverf::LwTx::tx_low_count = 3

Definition at line 53 of file LwTx.h.

◆ tx_msg_active

bool esphome::lightwaverf::LwTx::tx_msg_active = false

Definition at line 65 of file LwTx.h.

◆ TX_MSGLEN

const uint8_t esphome::lightwaverf::LwTx::TX_MSGLEN = 10
static

Definition at line 59 of file LwTx.h.

◆ tx_num_bytes

uint8_t esphome::lightwaverf::LwTx::tx_num_bytes = 0

Definition at line 84 of file LwTx.h.

◆ tx_pin

InternalGPIOPin* esphome::lightwaverf::LwTx::tx_pin

Definition at line 86 of file LwTx.h.

◆ tx_repeat

uint8_t esphome::lightwaverf::LwTx::tx_repeat = 0

Definition at line 69 of file LwTx.h.

◆ tx_repeats

uint8_t esphome::lightwaverf::LwTx::tx_repeats = 12

Definition at line 62 of file LwTx.h.

◆ tx_state

uint8_t esphome::lightwaverf::LwTx::tx_state = 0

Definition at line 70 of file LwTx.h.

◆ tx_toggle_count

uint8_t esphome::lightwaverf::LwTx::tx_toggle_count = 3

Definition at line 57 of file LwTx.h.

◆ tx_trail_count

uint8_t esphome::lightwaverf::LwTx::tx_trail_count = 1

Definition at line 55 of file LwTx.h.

◆ tx_translate

bool esphome::lightwaverf::LwTx::tx_translate = true

Definition at line 66 of file LwTx.h.

◆ txoff

uint8_t esphome::lightwaverf::LwTx::txoff = 0

Definition at line 64 of file LwTx.h.

◆ txon

uint8_t esphome::lightwaverf::LwTx::txon = 1

Definition at line 63 of file LwTx.h.


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