cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
AxisIcmp Class Reference

#include <AxisIcmp.hpp>

Inheritance diagram for AxisIcmp:
[legend]
Collaboration diagram for AxisIcmp:
[legend]

Public Member Functions

 AxisIcmp ()
 
 AxisIcmp (AxisRaw axisRaw)
 
 AxisIcmp (LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
 
 AxisIcmp (const AxisIcmp &axisIcmp)
 
void setIcmpType (IcmpType type)
 
IcmpType getIcmpType ()
 
void setIcmpCode (IcmpCode code)
 
IcmpCode getIcmpCode ()
 
void setIcmpCsum (IcmpCsum csum)
 
IcmpCsum getIcmpCsum ()
 
void setIcmpIdent (IcmpIdent id)
 
IcmpIdent getIcmpIdent ()
 
void setIcmpSeqNum (IcmpSeqNum num)
 
IcmpSeqNum getIcmpSeqNum ()
 
- Public Member Functions inherited from AxisRaw
 AxisRaw ()
 
 AxisRaw (LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
 
tData getTData (int leHi=64 -1, int leLo=0) const
 
tKeep getTKeep (int leHi=64/8-1, int leLo=0) const
 
tLast getTLast () const
 
void setTData (tData data)
 
void setTKeep (tKeep keep)
 
void setTLast (tLast last)
 
LE_tData getLE_TData (int leHi=64 -1, int leLo=0) const
 
LE_tKeep getLE_TKeep (int leHi=64/8-1, int leLo=0) const
 
LE_tLast getLE_TLast () const
 
void setLE_TData (LE_tData data, int leHi=64 -1, int leLo=0)
 
void setLE_TKeep (LE_tKeep keep, int leHi=64/8-1, int leLo=0)
 
void setLE_TLast (LE_tLast last)
 
tDataHalf getTDataHi () const
 
tDataHalf getTDataLo () const
 
tKeepHalf getTKeepHi () const
 
tKeepHalf getTKeepLo () const
 
void setTDataHi (tDataHalf halfData)
 
void setTDataLo (tDataHalf halfData)
 
void setTKeepHi (tKeepHalf halfKeep)
 
void setTKeepLo (tKeepHalf halfKeep)
 
LE_tDataHalf getLE_TDataHi () const
 
LE_tDataHalf getLE_TDataLo () const
 
void setLE_TDataHi (LE_tData data)
 
void setLE_TDataLo (LE_tData data)
 
void clearUnusedBytes ()
 
int getLen () const
 
int getLenHi ()
 
int getLenLo ()
 
bool isValid () const
 

Additional Inherited Members

- Protected Member Functions inherited from AxisRaw
int keepToLen () const
 
- Protected Attributes inherited from AxisRaw
LE_tData tdata
 
LE_tKeep tkeep
 
LE_tLast tlast
 

Detailed Description

ICMP Data over AXI4-STREAMING As Encoded by the 10GbE MAC (.i.e LITTLE-ENDIAN order).

Definition at line 102 of file AxisIcmp.hpp.

Constructor & Destructor Documentation

◆ AxisIcmp() [1/4]

AxisIcmp::AxisIcmp ( )
inline

Definition at line 105 of file AxisIcmp.hpp.

105 {}

◆ AxisIcmp() [2/4]

AxisIcmp::AxisIcmp ( AxisRaw  axisRaw)
inline

Definition at line 106 of file AxisIcmp.hpp.

106  :
107  AxisRaw(axisRaw.getLE_TData(), axisRaw.getLE_TKeep(), axisRaw.getLE_TLast()) {}
LE_tKeep getLE_TKeep(int leHi=64/8-1, int leLo=0) const
Definition: AxisRaw.hpp:264
AxisRaw()
Definition: AxisRaw.hpp:178
LE_tData getLE_TData(int leHi=64 -1, int leLo=0) const
Definition: AxisRaw.hpp:260
LE_tLast getLE_TLast() const
Definition: AxisRaw.hpp:268

◆ AxisIcmp() [3/4]

AxisIcmp::AxisIcmp ( LE_tData  tdata,
LE_tKeep  tkeep,
LE_tLast  tlast 
)
inline

Definition at line 108 of file AxisIcmp.hpp.

108  :
109  AxisRaw(tdata, tkeep, tlast) {}
LE_tData tdata
Definition: AxisRaw.hpp:173
LE_tKeep tkeep
Definition: AxisRaw.hpp:174
LE_tLast tlast
Definition: AxisRaw.hpp:175

◆ AxisIcmp() [4/4]

AxisIcmp::AxisIcmp ( const AxisIcmp axisIcmp)
inline

Definition at line 110 of file AxisIcmp.hpp.

110  :
111  AxisRaw(axisIcmp.tdata, axisIcmp.tkeep, axisIcmp.tlast) {}

Member Function Documentation

◆ getIcmpCode()

IcmpCode AxisIcmp::getIcmpCode ( )
inline

Definition at line 122 of file AxisIcmp.hpp.

122 { return tdata.range(15, 8); }
Here is the caller graph for this function:

◆ getIcmpCsum()

IcmpCsum AxisIcmp::getIcmpCsum ( )
inline

Definition at line 125 of file AxisIcmp.hpp.

125 { return swapWord (tdata.range(31, 16)); }
Here is the caller graph for this function:

◆ getIcmpIdent()

IcmpIdent AxisIcmp::getIcmpIdent ( )
inline

Definition at line 128 of file AxisIcmp.hpp.

128 { return swapWord (tdata.range(47, 32)); }

◆ getIcmpSeqNum()

IcmpSeqNum AxisIcmp::getIcmpSeqNum ( )
inline

Definition at line 131 of file AxisIcmp.hpp.

131 { return swapWord (tdata.range(63, 48)); }

◆ getIcmpType()

IcmpType AxisIcmp::getIcmpType ( )
inline

Definition at line 119 of file AxisIcmp.hpp.

119 { return tdata.range( 7, 0); }
Here is the caller graph for this function:

◆ setIcmpCode()

void AxisIcmp::setIcmpCode ( IcmpCode  code)
inline

Definition at line 121 of file AxisIcmp.hpp.

121 { tdata.range(15, 8) = code; }
Here is the caller graph for this function:

◆ setIcmpCsum()

void AxisIcmp::setIcmpCsum ( IcmpCsum  csum)
inline

Definition at line 124 of file AxisIcmp.hpp.

124 { tdata.range(31, 16) = swapWord(csum); }

◆ setIcmpIdent()

void AxisIcmp::setIcmpIdent ( IcmpIdent  id)
inline

Definition at line 127 of file AxisIcmp.hpp.

127 { tdata.range(47, 32) = swapWord(id); }

◆ setIcmpSeqNum()

void AxisIcmp::setIcmpSeqNum ( IcmpSeqNum  num)
inline

Definition at line 130 of file AxisIcmp.hpp.

130 { tdata.range(63, 48) = swapWord(num); }

◆ setIcmpType()

void AxisIcmp::setIcmpType ( IcmpType  type)
inline

ICMP MESSAGE HEADER HELPERS

Definition at line 118 of file AxisIcmp.hpp.

118 { tdata.range( 7, 0) = type; }
Here is the caller graph for this function:

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