#include <rc_switch_protocol.h>
|
| RCSwitchBase ()=default |
|
| RCSwitchBase (uint32_t sync_high, uint32_t sync_low, uint32_t zero_high, uint32_t zero_low, uint32_t one_high, uint32_t one_low, bool inverted) |
|
void | one (RemoteTransmitData *dst) const |
|
void | zero (RemoteTransmitData *dst) const |
|
void | sync (RemoteTransmitData *dst) const |
|
void | transmit (RemoteTransmitData *dst, uint64_t code, uint8_t len) const |
|
bool | expect_one (RemoteReceiveData &src) const |
|
bool | expect_zero (RemoteReceiveData &src) const |
|
bool | expect_sync (RemoteReceiveData &src) const |
|
bool | decode (RemoteReceiveData &src, uint64_t *out_data, uint8_t *out_nbits) const |
|
optional< RCSwitchData > | decode (RemoteReceiveData &src) const |
|
|
static void | simple_code_to_tristate (uint16_t code, uint8_t nbits, uint64_t *out_code) |
|
static void | type_a_code (uint8_t switch_group, uint8_t switch_device, bool state, uint64_t *out_code, uint8_t *out_nbits) |
|
static void | type_b_code (uint8_t address_code, uint8_t channel_code, bool state, uint64_t *out_code, uint8_t *out_nbits) |
|
static void | type_c_code (uint8_t family, uint8_t group, uint8_t device, bool state, uint64_t *out_code, uint8_t *out_nbits) |
|
static void | type_d_code (uint8_t group, uint8_t device, bool state, uint64_t *out_code, uint8_t *out_nbits) |
|
Definition at line 16 of file rc_switch_protocol.h.
◆ ProtocolData
◆ RCSwitchBase() [1/2]
esphome::remote_base::RCSwitchBase::RCSwitchBase |
( |
| ) |
|
|
default |
◆ RCSwitchBase() [2/2]
esphome::remote_base::RCSwitchBase::RCSwitchBase |
( |
uint32_t |
sync_high, |
|
|
uint32_t |
sync_low, |
|
|
uint32_t |
zero_high, |
|
|
uint32_t |
zero_low, |
|
|
uint32_t |
one_high, |
|
|
uint32_t |
one_low, |
|
|
bool |
inverted |
|
) |
| |
◆ decode() [1/2]
bool esphome::remote_base::RCSwitchBase::decode |
( |
RemoteReceiveData & |
src, |
|
|
uint64_t * |
out_data, |
|
|
uint8_t * |
out_nbits |
|
) |
| const |
◆ decode() [2/2]
◆ expect_one()
◆ expect_sync()
bool esphome::remote_base::RCSwitchBase::expect_sync |
( |
RemoteReceiveData & |
src | ) |
const |
◆ expect_zero()
bool esphome::remote_base::RCSwitchBase::expect_zero |
( |
RemoteReceiveData & |
src | ) |
const |
◆ one()
◆ simple_code_to_tristate()
void esphome::remote_base::RCSwitchBase::simple_code_to_tristate |
( |
uint16_t |
code, |
|
|
uint8_t |
nbits, |
|
|
uint64_t * |
out_code |
|
) |
| |
|
static |
◆ sync()
◆ transmit()
void esphome::remote_base::RCSwitchBase::transmit |
( |
RemoteTransmitData * |
dst, |
|
|
uint64_t |
code, |
|
|
uint8_t |
len |
|
) |
| const |
◆ type_a_code()
void esphome::remote_base::RCSwitchBase::type_a_code |
( |
uint8_t |
switch_group, |
|
|
uint8_t |
switch_device, |
|
|
bool |
state, |
|
|
uint64_t * |
out_code, |
|
|
uint8_t * |
out_nbits |
|
) |
| |
|
static |
◆ type_b_code()
void esphome::remote_base::RCSwitchBase::type_b_code |
( |
uint8_t |
address_code, |
|
|
uint8_t |
channel_code, |
|
|
bool |
state, |
|
|
uint64_t * |
out_code, |
|
|
uint8_t * |
out_nbits |
|
) |
| |
|
static |
◆ type_c_code()
void esphome::remote_base::RCSwitchBase::type_c_code |
( |
uint8_t |
family, |
|
|
uint8_t |
group, |
|
|
uint8_t |
device, |
|
|
bool |
state, |
|
|
uint64_t * |
out_code, |
|
|
uint8_t * |
out_nbits |
|
) |
| |
|
static |
◆ type_d_code()
void esphome::remote_base::RCSwitchBase::type_d_code |
( |
uint8_t |
group, |
|
|
uint8_t |
device, |
|
|
bool |
state, |
|
|
uint64_t * |
out_code, |
|
|
uint8_t * |
out_nbits |
|
) |
| |
|
static |
◆ zero()
◆ inverted_
bool esphome::remote_base::RCSwitchBase::inverted_ {} |
|
protected |
◆ one_high_
uint32_t esphome::remote_base::RCSwitchBase::one_high_ {} |
|
protected |
◆ one_low_
uint32_t esphome::remote_base::RCSwitchBase::one_low_ {} |
|
protected |
◆ sync_high_
uint32_t esphome::remote_base::RCSwitchBase::sync_high_ {} |
|
protected |
◆ sync_low_
uint32_t esphome::remote_base::RCSwitchBase::sync_low_ {} |
|
protected |
◆ zero_high_
uint32_t esphome::remote_base::RCSwitchBase::zero_high_ {} |
|
protected |
◆ zero_low_
uint32_t esphome::remote_base::RCSwitchBase::zero_low_ {} |
|
protected |
The documentation for this class was generated from the following files: