Tool Libs
UMIT-TIROL Institute of Automation and Control Engineering library collection
 
Loading...
Searching...
No Matches
Frame Struct Reference

pyWisp communication frame More...

#include <frameregistry.h>

Collaboration diagram for Frame:
[legend]

Public Member Functions

 Frame (uint8_t id=0)
 construct Frame with given id
 
template<typename T >
Framepack (T value)
 pack value into Frame
 
template<typename T >
void unPack (T &value)
 unpack into value from Frame
 
template<typename T >
unpack ()
 return unpacked value from Frame
 

Public Attributes

Buffer< uint8_t > b = 128
 buffer containing the Frame payload
 
uint8_t id {}
 buffer id: [0..63]
 

Detailed Description

pyWisp communication frame

Member Function Documentation

◆ pack()

template<typename T >
Frame & Frame::pack ( value)
inline

pack value into Frame

use pack<typename>(value) to be explicit

◆ unPack()

template<typename T >
void Frame::unPack ( T &  value)
inline

unpack into value from Frame

use unPack<typename>(location) to be explicit

◆ unpack()

template<typename T >
T Frame::unpack ( )
inline

return unpacked value from Frame

can only be used explicitly as unpack<typename>


The documentation for this struct was generated from the following file: