|
IRremoteESP8266
|
Class for handling detailed Hitachi 15to27-byte/120to216-bit A/C messages. More...
#include <ir_Hitachi.h>

Public Member Functions | |
| IRHitachiAc3 (const uint16_t pin, const bool inverted=false, const bool use_modulation=true) | |
| Class constructor. More... | |
| void | stateReset (void) |
| Reset the internal state to a fixed known good state. More... | |
| void | send (const uint16_t repeat=kHitachiAcDefaultRepeat) |
| int8_t | calibrate (void) |
| Run the calibration to calculate uSec timing offsets for this platform. More... | |
| void | begin (void) |
| Set up hardware to be able to send a message. More... | |
| uint8_t | getMode (void) |
| uint8_t * | getRaw (void) |
| Get a PTR to the internal state/code for this protocol. More... | |
| void | setRaw (const uint8_t new_code[], const uint16_t length=kHitachiAc3StateLength) |
| Set the internal state from a valid code for this protocol. More... | |
Static Public Member Functions | |
| static bool | hasInvertedStates (const uint8_t state[], const uint16_t length) |
| Check if every second byte of the state, after the fixed header is inverted to the previous byte. More... | |
Private Member Functions | |
| void | setInvertedStates (const uint16_t length=kHitachiAc3StateLength) |
| Invert every second byte of the internal state, after the fixed header. More... | |
Private Attributes | |
| IRsend | _irsend |
| Instance of the IR send class. More... | |
| uint8_t | remote_state [kHitachiAc3StateLength] |
| The state in native code. More... | |
Class for handling detailed Hitachi 15to27-byte/120to216-bit A/C messages.
|
explicit |
Class constructor.
| [in] | pin | GPIO to be used when sending. |
| [in] | inverted | Is the output signal to be inverted? |
| [in] | use_modulation | Is frequency modulation to be used? |
| void IRHitachiAc3::begin | ( | void | ) |
Set up hardware to be able to send a message.
|
inline |
Run the calibration to calculate uSec timing offsets for this platform.
| uint8_t IRHitachiAc3::getMode | ( | void | ) |
| uint8_t * IRHitachiAc3::getRaw | ( | void | ) |
Get a PTR to the internal state/code for this protocol.
|
static |
Check if every second byte of the state, after the fixed header is inverted to the previous byte.
| [in] | state | The state array to be checked. |
| [in] | length | The size of the state array. |
| void IRHitachiAc3::send | ( | const uint16_t | repeat = kHitachiAcDefaultRepeat | ) |
|
private |
Invert every second byte of the internal state, after the fixed header.
| [in] | length | The size of the state array. |
| void IRHitachiAc3::setRaw | ( | const uint8_t | new_code[], |
| const uint16_t | length = kHitachiAc3StateLength |
||
| ) |
Set the internal state from a valid code for this protocol.
| [in] | new_code | A valid code for this protocol. |
| [in] | length | The length of the new_code array. |
| void IRHitachiAc3::stateReset | ( | void | ) |
Reset the internal state to a fixed known good state.
|
private |
Instance of the IR send class.
|
private |
The state in native code.
1.8.17