#include <meshFrame.h>
 | 
| static uint8_t  | GetRawLength (bool includeCarriageCount) | 
|   | Gets size of raw data length of header only.  More...
  | 
|   | 
◆ MeshFrameHeader() [1/2]
  
  
      
        
          | MeshFrameHeader::MeshFrameHeader  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
default   | 
  
 
 
◆ MeshFrameHeader() [2/2]
      
        
          | MeshFrameHeader::MeshFrameHeader  | 
          ( | 
          const uint8_t *  | 
          data,  | 
        
        
           | 
           | 
          uint8_t  | 
          dataSize  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Fills frame header fields only from raw data, frame data are ignored. 
- Parameters
 - 
  
    | [in] | data | Received raw data.  | 
    | [in] | dataSize | Length of received raw data in bytes.  | 
  
   
 
 
◆ Clear()
      
        
          | void MeshFrameHeader::Clear  | 
          ( | 
           | ) | 
           | 
        
      
 
Clears all data in frame header. 
 
 
◆ FromRaw()
      
        
          | bool MeshFrameHeader::FromRaw  | 
          ( | 
          const uint8_t *  | 
          data,  | 
        
        
           | 
           | 
          uint8_t  | 
          dataSize  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Fills frame header fields only from raw data, frame data are ignored. 
- Parameters
 - 
  
    | [in] | data | Received raw data.  | 
    | [in] | dataSize | Length of received raw data in bytes.  | 
  
   
- Returns
 - Returns true when no error happened. 
 
 
 
◆ GetRawLength() [1/2]
  
  
      
        
          | uint8_t MeshFrameHeader::GetRawLength  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets size of raw data length of header only. 
- Returns
 - Returns size of raw data length in bytes. 
 
 
 
◆ GetRawLength() [2/2]
  
  
      
        
          | static uint8_t MeshFrameHeader::GetRawLength  | 
          ( | 
          bool  | 
          includeCarriageCount | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
Gets size of raw data length of header only. 
- Parameters
 - 
  
    | includeCarriageCount | Set to true to get length including carriage count byte  | 
  
   
- Returns
 - Returns size of raw data length in bytes. 
 
 
 
◆ GetUniquePacketID()
  
  
      
        
          | uint16_t MeshFrameHeader::GetUniquePacketID  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Gets unique packed identifier which is composed from ID and source address. 
 
 
◆ HasError()
  
  
      
        
          | bool MeshFrameHeader::HasError  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if frame is not valid. 
 
 
◆ IsSamePacket() [1/2]
  
  
      
        
          | bool MeshFrameHeader::IsSamePacket  | 
          ( | 
          const MeshFrame &  | 
          frame | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if two frames are from same packet. 
- Parameters
 - 
  
  
 
- Returns
 - Returns true when both frames are from same packet. 
 
 
 
◆ IsSamePacket() [2/2]
  
  
      
        
          | bool MeshFrameHeader::IsSamePacket  | 
          ( | 
          const MeshFrameHeader &  | 
          frameHeader | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Checks if two frames are from same packet. 
- Parameters
 - 
  
    | frameHeader | Another frame header.  | 
  
   
- Returns
 - Returns true when both frames are from same packet. 
 
 
 
◆ ToRaw()
      
        
          | bool MeshFrameHeader::ToRaw  | 
          ( | 
          uint8_t *  | 
          data,  | 
        
        
           | 
           | 
          uint8_t &  | 
          dataSize  | 
        
        
           | 
          ) | 
           |  const | 
        
      
 
Converts frame header to raw data. 
- Parameters
 - 
  
    | [out] | data | Output raw data buffer.  | 
    | [in,out] | dataSize | Input is reserved size of data buffer and output is contains raw data size.  | 
  
   
- Returns
 - Returns true when structure was converted to raw data or false when data buffer has not enough space. 
 
 
 
◆ BSSID
◆ CarriageCount
      
        
          | uint8_t MeshFrameHeader::CarriageCount = 0 | 
        
      
 
Count of remaining frames in carriage. 
 
 
◆ FrameControl
◆ ID
      
        
          | uint8_t MeshFrameHeader::ID = 0 | 
        
      
 
Unique packet ID. 
- Note
 - ID has to be generated by source node. 
 
 
 
◆ Source
Address of message source node. 
 
 
The documentation for this struct was generated from the following files: