Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class that provides a bi-stable relay. More...
#include <cs_Relay.h>
Public Member Functions | |
void | init (const boards_config_t &board) |
bool | hasRelay () |
Returns true when this board has a relay. More... | |
bool | set (bool value) |
Set relay on or off. More... | |
Private Member Functions | |
TYPIFY (CONFIG_RELAY_HIGH_DURATION) _relayHighDurationMs | |
bool | turnOn () |
bool | turnOff () |
Private Attributes | |
bool | _initialized = false |
bool | _hasRelay |
uint8_t | _pinRelayOn |
uint8_t | _pinRelayOff |
uint8_t | _pinRelayDebug |
bool | _ledInverted |
Class that provides a bi-stable relay.
bool Relay::hasRelay | ( | ) |
Returns true when this board has a relay.
void Relay::init | ( | const boards_config_t & | board | ) |
bool Relay::set | ( | bool | value | ) |
Set relay on or off.
[in] | value | True to set the relay on. |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |