|
M5Unit-RF433 0.1.0 git rev:5415b86
|
M5Unit-RF433 original protocol codec. More...
#include <m5_codec.hpp>
Public Member Functions | |
| item_container_type | encode (const uint8_t *payload, uint32_t payload_len) override |
| Encode payload into RMT items with M5 protocol framing. | |
| bool | decode (const gpio::m5_rmt_item_t *items, uint32_t num, uint8_t *work_buf, uint16_t work_buf_size, DecodeResult &result) override |
| Decode RMT items into payload data. | |
| uint8_t | overhead () const override |
| Get protocol overhead in bytes. | |
Communication identifier (M5Codec specific) | |
| communication_identifier_t | communicationIdentifier () const |
| Get the communication identifier. | |
| void | setCommunicationIdentifier (communication_identifier_t id) |
| Set the communication identifier. | |
Public Member Functions inherited from m5::unit::rf433::ProtocolCodec | |
| ProtocolCodec (CodecType t) | |
| CodecType | type () const |
| Get codec type for safe downcasting. | |
M5Unit-RF433 original protocol codec.
Always includes communication identifier (1 byte) and send count (1 byte). CRC8 covers payload only.
|
inline |
Get the communication identifier.
|
overridevirtual |
Decode RMT items into payload data.
| items | Pointer to the received RMT items (after SOF detection) | |
| num | Number of RMT items | |
| work_buf | Working buffer for decoded bytes | |
| work_buf_size | Size of the working buffer | |
| [out] | result | Decoded result containing payload pointer and metadata |
Implements m5::unit::rf433::ProtocolCodec.
|
overridevirtual |
Encode payload into RMT items with M5 protocol framing.
| payload | Pointer to the payload data |
| payload_len | Length of the payload in bytes |
Implements m5::unit::rf433::ProtocolCodec.
|
inlineoverridevirtual |
Get protocol overhead in bytes.
Implements m5::unit::rf433::ProtocolCodec.
|
inline |
Set the communication identifier.
| id | Communication identifier (0-255) for filtering received frames |