Go to the documentation of this file.
  106         return 7 + includeCarriageCount;
 
  115     bool FromRaw(
const uint8_t* data, uint8_t dataSize);
 
  123     bool ToRaw(uint8_t* data, uint8_t& dataSize) 
const;
 
  135     MeshFrame(
const uint8_t* data, uint8_t dataSize);
 
  203     bool FromRaw(
const uint8_t* data, uint8_t dataSize);
 
  211     bool ToRaw(uint8_t* data, uint8_t& dataSize) 
const;
 
  234     bool SetData(
const uint8_t* data, 
const uint8_t dataLength);
 
  241     void GetData(uint8_t* data, uint8_t& dataLength) 
const;
 
  249     bool ResizeData(uint8_t size, 
bool doNotCopy = 
false);
 
  279     inline const uint8_t* 
d_ptr()
 const {
 
  321 #endif // !MESH_FRAME_H 
  
void operator=(const MeshFrameHeader &val)
Definition: meshFrame.h:284
 
void GetData(uint8_t *data, uint8_t &dataLength) const
Gets data.
Definition: meshFrame.cpp:141
 
uint8_t * Data
Frame data.
Definition: meshFrame.h:318
 
Structure, that contains bit flags used for Frame Control in MeshPacket. Size of this structure is al...
Definition: meshPacketFlags.h:25
 
uint8_t operator[](uint8_t i) const
Definition: meshFrame.h:174
 
bool IsSamePacket(const MeshFrameHeader &frameHeader) const
Checks if two frames are from same packet.
Definition: meshFrame.h:296
 
bool HasError() const
Checks if frame is not valid.
Definition: meshFrame.h:185
 
const uint8_t * d_ptr() const
Pointer to data.
Definition: meshFrame.h:279
 
uint8_t Length() const
Length of data.
Definition: meshFrame.h:170
 
bool SetDataByteAt(uint8_t index, uint8_t value)
Sets data byte at specified index.
Definition: meshFrame.cpp:156
 
bool IsCarriageHeader() const
Checks, if frame is header part of carriage.
Definition: meshPacketFlags.h:88
 
MeshFrame & operator=(const MeshFrame &mf)
Copy assignment operator.
Definition: meshFrame.cpp:83
 
Definition: meshFrame.h:126
 
uint8_t GetRawLength() const
Gets size of raw data length.
Definition: meshFrame.h:193
 
~MeshFrame()
Destructor.
Definition: meshFrame.cpp:79
 
MeshFrame()
Definition: meshFrame.cpp:63
 
bool IsSamePacket(const MeshFrame &frame) const
Checks if two frames are from same packet.
Definition: meshFrame.h:305
 
bool SetData(const uint8_t *data, const uint8_t dataLength)
Sets data data.
Definition: meshFrame.cpp:127
 
uint8_t GetDataByteAt(uint8_t index) const
Reads data byte at specified index.
Definition: meshFrame.cpp:148
 
bool ToRaw(uint8_t *data, uint8_t &dataSize) const
Converts structure to raw data.
Definition: meshFrame.cpp:101
 
void ClearData()
Clears frame data.
Definition: meshFrame.cpp:192
 
bool ResizeData(uint8_t size, bool doNotCopy=false)
Resizes data.
Definition: meshFrame.cpp:165
 
This file contains structures, that encodes flags in packet.
 
Structure that represents physical MAC address used in MeshNEt protocol. MeshMAC address unlike MAC a...
Definition: meshHelper.h:207
 
bool FromRaw(const uint8_t *data, uint8_t dataSize)
Fills frame fields from raw data.
Definition: meshFrame.cpp:93
 
#define IS_VALID_MESH_SRC_ADDRESS(address)
Checks if mesh "source" address from packet or frame header is valid. Accepted values from 0 to MAX_M...
Definition: meshConfig.h:88
 
void moveFrom(MeshFrame &another)
Copyies data from another frame to current frame and clears data in another frame.
Definition: meshFrame.cpp:214
 
#define INVALID_MESH_ADDRESS
Address, that is invalid and cannot be used.
Definition: meshConfig.h:56
 
bool copyFrom(const MeshFrame &another)
Copyies data from another frame to current frame.
Definition: meshFrame.cpp:205
 
This file contains class which safetly handles allocation and deallocation of memory....
 
MeshFrameHeader FrameHeader
Frame header, that contains frame describing informations.
Definition: meshFrame.h:165
 
uint8_t DataSize
Size of frame data.
Definition: meshFrame.h:313
 
bool IsCarriageFrame() const
Checks, if frame is part of carriage.
Definition: meshPacketFlags.h:81
 
void Clear()
Clears all data in frame.
Definition: meshFrame.cpp:200