SYN531R unit.
More...
#include <unit_SYN531R.hpp>
|
|
virtual bool | begin () override |
| | Initialize the receiver unit.
|
| |
|
virtual void | update (const bool force=false) override |
| | Update the receiver unit.
|
| |
| rf433::ProtocolCodec & | codec () |
| | Get codec (for codec-specific configuration)
|
| |
| const rf433::ProtocolCodec & | codec () const |
| | Get codec (for codec-specific configuration)
|
| |
| void | setCodec (rf433::ProtocolCodec &codec) |
| | Set protocol codec.
|
| |
|
void | resetCodec () |
| | Reset to default M5Codec.
|
| |
|
|
config_t | config () |
| | Gets the configuration.
|
| |
|
void | config (const config_t &cfg) |
| | Set the configuration.
|
| |
|
|
size_t | available () const |
| | Gets the number of stored data.
|
| |
|
bool | empty () const |
| | Is empty stored data?
|
| |
|
uint8_t | oldest () const |
| | Retrieve oldest stored data.
|
| |
|
uint8_t | latest () const |
| | Retrieve latest stored data.
|
| |
|
void | discard () |
| | Discard the oldest data accumulated.
|
| |
|
void | flush () |
| | Discard all data.
|
| |
|
const container_type & | container () const |
| | Gets the received container reference.
|
| |
SYN531R unit.
RF433 Receiver
◆ codec() [1/2]
Get codec (for codec-specific configuration)
- Returns
- The codec set by setCodec(), or the built-in M5Codec if none is set
◆ codec() [2/2]
Get codec (for codec-specific configuration)
- Returns
- The codec set by setCodec(), or the built-in M5Codec if none is set
◆ setCodec()
Set protocol codec.
- Parameters
-
| codec | Codec to use. Passing the unit's own built-in codec is the same as resetCodec() |
- Warning
- Caller must ensure the codec outlives this unit