SYN115 unit.
More...
#include <unit_SYN115.hpp>
|
|
virtual bool | begin () override |
| | Initialize the transmitter unit.
|
| |
|
virtual void | update (const bool force=false) override |
| | Update the transmitter unit.
|
| |
| rf433::ProtocolCodec & | codec () |
| | Get codec (for codec-specific configuration)
|
| |
| const rf433::ProtocolCodec & | codec () const |
| | Get codec (for codec-specific configuration)
|
| |
| bool | push_back (const uint8_t *data, const uint32_t len) |
| | Push back data to payload.
|
| |
| bool | send (const uint8_t burst_transmission_count=0) |
| | Send force if exists payload.
|
| |
|
void | clear () |
| | Clear inner buffer.
|
| |
| 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.
|
| |
SYN115 unit.
RF433 Transmitter
◆ 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
◆ push_back()
| bool m5::unit::UnitSYN115::push_back |
( |
const uint8_t * | data, |
|
|
const uint32_t | len ) |
Push back data to payload.
- Parameters
-
| data | Input data buffer |
| len | Length of data buffer |
- Returns
- True if successful
- Warning
- Total payload size is limited to 255 bytes. The receiver side has a stricter limit based on RMT hardware (rf433::MaxPayloadSize).
- See also
- rf433::MaxPayloadSize
◆ send()
| bool m5::unit::UnitSYN115::send |
( |
const uint8_t | burst_transmission_count = 0 | ) |
|
Send force if exists payload.
- Parameters
-
- Returns
- True if successful
- Note
- The payload will be empty if successful
◆ 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