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

#include <AxisPsd4.hpp>

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

Public Member Functions

 AxisPsd4 ()
 
 AxisPsd4 (AxisRaw &axisRaw)
 
 AxisPsd4 (LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
 
 AxisPsd4 (const AxisPsd4 &axisPsd4)
 
void setPsd4SrcAddr (Ip4Addr addr)
 
Ip4Addr getPsd4SrcAddr ()
 
void setPsd4DstAddr (Ip4Addr addr)
 
Ip4Addr getPsd4DstAddr ()
 
void setPsd4ResBits (Psd4Res res)
 
Psd4Res getPsd4ResBits ()
 
void setPsd4Prot (Ip4Prot prot)
 
Ip4Prot getPsd4Prot ()
 
void setPsd4Len (Ly4Len len)
 
Ly4Len getPsd4Len ()
 
void setTcpSrcPort (TcpPort port)
 
TcpPort getTcpSrcPort ()
 
void setTcpDstPort (TcpPort port)
 
TcpPort getTcpDstPort ()
 
void setTcpSeqNum (TcpSeqNum num)
 
TcpSeqNum getTcpSeqNum ()
 
void setTcpAckNum (TcpAckNum num)
 
TcpAckNum getTcpAckNum ()
 
void setTcpCtrlNs (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlNs ()
 
void setTcpResBits (TcpResBits res)
 
TcpResBits getTcpResBits ()
 
void setTcpDataOff (TcpDataOff offset)
 
TcpDataOff getTcpDataOff ()
 
void setTcpCtrlFin (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlFin ()
 
void setTcpCtrlSyn (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlSyn ()
 
void setTcpCtrlRst (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlRst ()
 
void setTcpCtrlPsh (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlPsh ()
 
void setTcpCtrlAck (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlAck ()
 
void setTcpCtrlUrg (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlUrg ()
 
void setTcpCtrlEce (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlEce ()
 
void setTcpCtrlCwr (TcpCtrlBit bit)
 
TcpCtrlBit getTcpCtrlCwr ()
 
void setTcpWindow (TcpWindow win)
 
TcpWindow getTcpWindow ()
 
void setTcpChecksum (TcpChecksum csum)
 
TcpChecksum getTcpChecksum ()
 
void setTcpUrgPtr (TcpUrgPtr ptr)
 
TcpUrgPtr getTcpUrgPtr ()
 
void setTcpOptKind (TcpOptKind val)
 
TcpOptKind getTcpOptKind ()
 
void setTcpOptLen (TcpOptLen len)
 
TcpOptLen getTcpOptLend ()
 
void setTcpOptMss (TcpOptMss val)
 
TcpOptMss getTcpOptMss ()
 
LE_TcpPort getLE_TcpSrcPort ()
 
LE_TcpPort getLE_TcpDstPort ()
 
void setUdpSrcPort (UdpPort port)
 
UdpPort getUdpSrcPort ()
 
void setUdpDstPort (UdpPort port)
 
UdpPort getUdpDstPort ()
 
void setUdpLen (UdpLen len)
 
UdpLen getUdpLen ()
 
void setUdpCsum (UdpCsum csum)
 
TcpChecksum getUdpCsum ()
 
- 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

PSD4 - PSEUDO-IPv4 Packet over AXI4-STREAMING As Encoded by the 10GbE MAC (.i.e LITTLE-ENDIAN order).

Definition at line 110 of file AxisPsd4.hpp.

Constructor & Destructor Documentation

◆ AxisPsd4() [1/4]

AxisPsd4::AxisPsd4 ( )
inline

Definition at line 113 of file AxisPsd4.hpp.

113 {}

◆ AxisPsd4() [2/4]

AxisPsd4::AxisPsd4 ( AxisRaw axisRaw)
inline

Definition at line 114 of file AxisPsd4.hpp.

114  :
115  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

◆ AxisPsd4() [3/4]

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

Definition at line 116 of file AxisPsd4.hpp.

116  :
117  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

◆ AxisPsd4() [4/4]

AxisPsd4::AxisPsd4 ( const AxisPsd4 axisPsd4)
inline

Definition at line 118 of file AxisPsd4.hpp.

118  :
119  AxisRaw(axisPsd4.tdata, axisPsd4.tkeep, axisPsd4.tlast) {}

Member Function Documentation

◆ getLE_TcpDstPort()

LE_TcpPort AxisPsd4::getLE_TcpDstPort ( )
inline

Definition at line 201 of file AxisPsd4.hpp.

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

◆ getLE_TcpSrcPort()

LE_TcpPort AxisPsd4::getLE_TcpSrcPort ( )
inline

Definition at line 200 of file AxisPsd4.hpp.

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

◆ getPsd4DstAddr()

Ip4Addr AxisPsd4::getPsd4DstAddr ( )
inline

Definition at line 130 of file AxisPsd4.hpp.

130 { return swapDWord(tdata.range(63, 32)); }
Here is the caller graph for this function:

◆ getPsd4Len()

Ly4Len AxisPsd4::getPsd4Len ( )
inline

Definition at line 139 of file AxisPsd4.hpp.

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

◆ getPsd4Prot()

Ip4Prot AxisPsd4::getPsd4Prot ( )
inline

Definition at line 136 of file AxisPsd4.hpp.

136 { return tdata.range(15, 8); }

◆ getPsd4ResBits()

Psd4Res AxisPsd4::getPsd4ResBits ( )
inline

Definition at line 133 of file AxisPsd4.hpp.

133 { return tdata.range( 7, 0); }

◆ getPsd4SrcAddr()

Ip4Addr AxisPsd4::getPsd4SrcAddr ( )
inline

Definition at line 127 of file AxisPsd4.hpp.

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

◆ getTcpAckNum()

TcpAckNum AxisPsd4::getTcpAckNum ( )
inline

Definition at line 155 of file AxisPsd4.hpp.

155 { return swapDWord(tdata.range(63, 32)); }
Here is the caller graph for this function:

◆ getTcpChecksum()

TcpChecksum AxisPsd4::getTcpChecksum ( )
inline

Definition at line 187 of file AxisPsd4.hpp.

187 { return swapWord (tdata.range(47, 32)); }
Here is the caller graph for this function:

◆ getTcpCtrlAck()

TcpCtrlBit AxisPsd4::getTcpCtrlAck ( )
inline

Definition at line 175 of file AxisPsd4.hpp.

175 { return tdata.bit(12); }
Here is the caller graph for this function:

◆ getTcpCtrlCwr()

TcpCtrlBit AxisPsd4::getTcpCtrlCwr ( )
inline

Definition at line 181 of file AxisPsd4.hpp.

181 { return tdata.bit(15); }

◆ getTcpCtrlEce()

TcpCtrlBit AxisPsd4::getTcpCtrlEce ( )
inline

Definition at line 179 of file AxisPsd4.hpp.

179 { return tdata.bit(14); }

◆ getTcpCtrlFin()

TcpCtrlBit AxisPsd4::getTcpCtrlFin ( )
inline

Definition at line 167 of file AxisPsd4.hpp.

167 { return tdata.bit( 8); }
Here is the caller graph for this function:

◆ getTcpCtrlNs()

TcpCtrlBit AxisPsd4::getTcpCtrlNs ( )
inline

Definition at line 158 of file AxisPsd4.hpp.

158 { return tdata.bit( 0); }

◆ getTcpCtrlPsh()

TcpCtrlBit AxisPsd4::getTcpCtrlPsh ( )
inline

Definition at line 173 of file AxisPsd4.hpp.

173 { return tdata.bit(11); }

◆ getTcpCtrlRst()

TcpCtrlBit AxisPsd4::getTcpCtrlRst ( )
inline

Definition at line 171 of file AxisPsd4.hpp.

171 { return tdata.bit(10); }
Here is the caller graph for this function:

◆ getTcpCtrlSyn()

TcpCtrlBit AxisPsd4::getTcpCtrlSyn ( )
inline

Definition at line 169 of file AxisPsd4.hpp.

169 { return tdata.bit( 9); }
Here is the caller graph for this function:

◆ getTcpCtrlUrg()

TcpCtrlBit AxisPsd4::getTcpCtrlUrg ( )
inline

Definition at line 177 of file AxisPsd4.hpp.

177 { return tdata.bit(13); }

◆ getTcpDataOff()

TcpDataOff AxisPsd4::getTcpDataOff ( )
inline

Definition at line 164 of file AxisPsd4.hpp.

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

◆ getTcpDstPort()

TcpPort AxisPsd4::getTcpDstPort ( )
inline

Definition at line 149 of file AxisPsd4.hpp.

149 { return swapWord (tdata.range(63, 48)); }
Here is the caller graph for this function:

◆ getTcpOptKind()

TcpOptKind AxisPsd4::getTcpOptKind ( )
inline

Definition at line 193 of file AxisPsd4.hpp.

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

◆ getTcpOptLend()

TcpOptLen AxisPsd4::getTcpOptLend ( )
inline

Definition at line 196 of file AxisPsd4.hpp.

196 { return tdata.range(15, 8); }

◆ getTcpOptMss()

TcpOptMss AxisPsd4::getTcpOptMss ( )
inline

Definition at line 198 of file AxisPsd4.hpp.

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

◆ getTcpResBits()

TcpResBits AxisPsd4::getTcpResBits ( )
inline

Definition at line 161 of file AxisPsd4.hpp.

161 { return tdata.range( 3, 1); }

◆ getTcpSeqNum()

TcpSeqNum AxisPsd4::getTcpSeqNum ( )
inline

Definition at line 152 of file AxisPsd4.hpp.

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

◆ getTcpSrcPort()

TcpPort AxisPsd4::getTcpSrcPort ( )
inline

Definition at line 146 of file AxisPsd4.hpp.

146 { return swapWord (tdata.range(47, 32)); }
Here is the caller graph for this function:

◆ getTcpUrgPtr()

TcpUrgPtr AxisPsd4::getTcpUrgPtr ( )
inline

Definition at line 190 of file AxisPsd4.hpp.

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

◆ getTcpWindow()

TcpWindow AxisPsd4::getTcpWindow ( )
inline

Definition at line 184 of file AxisPsd4.hpp.

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

◆ getUdpCsum()

TcpChecksum AxisPsd4::getUdpCsum ( )
inline

Definition at line 217 of file AxisPsd4.hpp.

217 { return swapWord (tdata.range(31, 16)); }

◆ getUdpDstPort()

UdpPort AxisPsd4::getUdpDstPort ( )
inline

Definition at line 211 of file AxisPsd4.hpp.

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

◆ getUdpLen()

UdpLen AxisPsd4::getUdpLen ( )
inline

Definition at line 214 of file AxisPsd4.hpp.

214 { return swapWord (tdata.range(15, 0)); }

◆ getUdpSrcPort()

UdpPort AxisPsd4::getUdpSrcPort ( )
inline

Definition at line 208 of file AxisPsd4.hpp.

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

◆ setPsd4DstAddr()

void AxisPsd4::setPsd4DstAddr ( Ip4Addr  addr)
inline

Definition at line 129 of file AxisPsd4.hpp.

129 { tdata.range(63, 32) = swapDWord(addr); }
Here is the caller graph for this function:

◆ setPsd4Len()

void AxisPsd4::setPsd4Len ( Ly4Len  len)
inline

Definition at line 138 of file AxisPsd4.hpp.

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

◆ setPsd4Prot()

void AxisPsd4::setPsd4Prot ( Ip4Prot  prot)
inline

Definition at line 135 of file AxisPsd4.hpp.

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

◆ setPsd4ResBits()

void AxisPsd4::setPsd4ResBits ( Psd4Res  res)
inline

Definition at line 132 of file AxisPsd4.hpp.

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

◆ setPsd4SrcAddr()

void AxisPsd4::setPsd4SrcAddr ( Ip4Addr  addr)
inline

TCP/IPv4 PSEUDO HEADER HELPERS

Definition at line 126 of file AxisPsd4.hpp.

126 { tdata.range(31, 0) = swapDWord(addr); }
Here is the caller graph for this function:

◆ setTcpAckNum()

void AxisPsd4::setTcpAckNum ( TcpAckNum  num)
inline

Definition at line 154 of file AxisPsd4.hpp.

154 { tdata.range(63, 32) = swapDWord(num); }
Here is the caller graph for this function:

◆ setTcpChecksum()

void AxisPsd4::setTcpChecksum ( TcpChecksum  csum)
inline

Definition at line 186 of file AxisPsd4.hpp.

186 { tdata.range(47, 32) = swapWord(csum); }
Here is the caller graph for this function:

◆ setTcpCtrlAck()

void AxisPsd4::setTcpCtrlAck ( TcpCtrlBit  bit)
inline

Definition at line 174 of file AxisPsd4.hpp.

174 { tdata.bit(12) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlCwr()

void AxisPsd4::setTcpCtrlCwr ( TcpCtrlBit  bit)
inline

Definition at line 180 of file AxisPsd4.hpp.

180 { tdata.bit(15) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlEce()

void AxisPsd4::setTcpCtrlEce ( TcpCtrlBit  bit)
inline

Definition at line 178 of file AxisPsd4.hpp.

178 { tdata.bit(14) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlFin()

void AxisPsd4::setTcpCtrlFin ( TcpCtrlBit  bit)
inline

Definition at line 166 of file AxisPsd4.hpp.

166 { tdata.bit( 8) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlNs()

void AxisPsd4::setTcpCtrlNs ( TcpCtrlBit  bit)
inline

Definition at line 157 of file AxisPsd4.hpp.

157 { tdata.bit( 0) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlPsh()

void AxisPsd4::setTcpCtrlPsh ( TcpCtrlBit  bit)
inline

Definition at line 172 of file AxisPsd4.hpp.

172 { tdata.bit(11) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlRst()

void AxisPsd4::setTcpCtrlRst ( TcpCtrlBit  bit)
inline

Definition at line 170 of file AxisPsd4.hpp.

170 { tdata.bit(10) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlSyn()

void AxisPsd4::setTcpCtrlSyn ( TcpCtrlBit  bit)
inline

Definition at line 168 of file AxisPsd4.hpp.

168 { tdata.bit( 9) = bit; }
Here is the caller graph for this function:

◆ setTcpCtrlUrg()

void AxisPsd4::setTcpCtrlUrg ( TcpCtrlBit  bit)
inline

Definition at line 176 of file AxisPsd4.hpp.

176 { tdata.bit(13) = bit; }
Here is the caller graph for this function:

◆ setTcpDataOff()

void AxisPsd4::setTcpDataOff ( TcpDataOff  offset)
inline

Definition at line 163 of file AxisPsd4.hpp.

163 { tdata.range( 7, 4) = offset; }
Here is the caller graph for this function:

◆ setTcpDstPort()

void AxisPsd4::setTcpDstPort ( TcpPort  port)
inline

Definition at line 148 of file AxisPsd4.hpp.

148 { tdata.range(63, 48) = swapWord(port); }
Here is the caller graph for this function:

◆ setTcpOptKind()

void AxisPsd4::setTcpOptKind ( TcpOptKind  val)
inline

Definition at line 192 of file AxisPsd4.hpp.

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

◆ setTcpOptLen()

void AxisPsd4::setTcpOptLen ( TcpOptLen  len)
inline

Definition at line 195 of file AxisPsd4.hpp.

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

◆ setTcpOptMss()

void AxisPsd4::setTcpOptMss ( TcpOptMss  val)
inline

Definition at line 197 of file AxisPsd4.hpp.

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

◆ setTcpResBits()

void AxisPsd4::setTcpResBits ( TcpResBits  res)
inline

Definition at line 160 of file AxisPsd4.hpp.

160 { tdata.range( 3, 1) = res; }
Here is the caller graph for this function:

◆ setTcpSeqNum()

void AxisPsd4::setTcpSeqNum ( TcpSeqNum  num)
inline

Definition at line 151 of file AxisPsd4.hpp.

151 { tdata.range(31, 0) = swapDWord(num); }
Here is the caller graph for this function:

◆ setTcpSrcPort()

void AxisPsd4::setTcpSrcPort ( TcpPort  port)
inline

Definition at line 145 of file AxisPsd4.hpp.

145 { tdata.range(47, 32) = swapWord(port); }
Here is the caller graph for this function:

◆ setTcpUrgPtr()

void AxisPsd4::setTcpUrgPtr ( TcpUrgPtr  ptr)
inline

Definition at line 189 of file AxisPsd4.hpp.

189 { tdata.range(63, 48) = swapWord(ptr); }
Here is the caller graph for this function:

◆ setTcpWindow()

void AxisPsd4::setTcpWindow ( TcpWindow  win)
inline

Definition at line 183 of file AxisPsd4.hpp.

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

◆ setUdpCsum()

void AxisPsd4::setUdpCsum ( UdpCsum  csum)
inline

Definition at line 216 of file AxisPsd4.hpp.

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

◆ setUdpDstPort()

void AxisPsd4::setUdpDstPort ( UdpPort  port)
inline

Definition at line 210 of file AxisPsd4.hpp.

210 { tdata.range(63, 48) = swapWord(port); }
Here is the caller graph for this function:

◆ setUdpLen()

void AxisPsd4::setUdpLen ( UdpLen  len)
inline

Definition at line 213 of file AxisPsd4.hpp.

213 { tdata.range(15, 0) = swapWord(len); }
Here is the caller graph for this function:

◆ setUdpSrcPort()

void AxisPsd4::setUdpSrcPort ( UdpPort  port)
inline

Definition at line 207 of file AxisPsd4.hpp.

207 { tdata.range(47, 32) = swapWord(port); }
Here is the caller graph for this function:

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