M5Unit-RF433 0.1.0 git rev:5415b86
Loading...
Searching...
No Matches
rmt_item_types.cpp File Reference

RMT related definition and function for RF433. More...

#include "rmt_item_types.hpp"
#include <M5Utility.h>

Namespaces

namespace  m5
 Top level namespace of M5Stack.
 

Functions

item_container_type m5::unit::rf433::encodeManchester (const uint8_t *data, const uint32_t len, const bool MSB=true)
 Encode manchester.
 
uint16_t m5::unit::rf433::decodeManchester (uint8_t *buf, const uint16_t buf_size, const m5::unit::gpio::m5_rmt_item_t *data, const uint32_t num, const bool MSB=true)
 Decode manchester.
 

Detailed Description

RMT related definition and function for RF433.

Function Documentation

◆ decodeManchester()

uint16_t m5::unit::rf433::decodeManchester ( uint8_t * buf,
const uint16_t buf_size,
const m5::unit::gpio::m5_rmt_item_t * data,
const uint32_t num,
const bool MSB = true )

Decode manchester.

Parameters
bufOutput buffer
buf_sizeOutput buffer size
dataRMT data (exclude SOF)
numNumber of the RMT items
MSBProcess from MSB if true
Returns
Decoded count

◆ encodeManchester()

item_container_type m5::unit::rf433::encodeManchester ( const uint8_t * data,
const uint32_t len,
const bool MSB = true )

Encode manchester.

Parameters
dataInput buffer
lenLength of input buffer
MSBProcess from MSB if true
Returns
Encoded container