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

#include <AxisTcp.hpp>

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

Public Member Functions

 AxisTcp ()
 
 AxisTcp (AxisRaw axisRaw)
 
 AxisTcp (LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
 
 AxisTcp (const AxisTcp &axisTcp)
 
void setTcpSrcPort (TcpPort port)
 
TcpPort getTcpSrcPort ()
 
LE_TcpPort getLE_TcpSrcPort ()
 
void setTcpDstPort (TcpPort port)
 
TcpPort getTcpDstPort ()
 
LE_TcpPort getLE_TcpDstPort ()
 
void setTcpSeqNum (TcpSeqNum num)
 
TcpSeqNum getTcpSeqNum ()
 
void setTcpAckNum (TcpAckNum num)
 
TcpAckNum getTcpAckNum ()
 
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 setTcpWindow (TcpWindow win)
 
TcpWindow getTcpWindow ()
 
void setTcpChecksum (TcpChecksum csum)
 
TcpChecksum getTcpChecksum ()
 
void setTcpUrgPtr (TcpUrgPtr ptr)
 
TcpUrgPtr getTcpUrgPtr ()
 
void setTcpOptKind (TcpOptKind val)
 
TcpOptKind getTcpOptKind ()
 
void setTcpOptMss (TcpOptMss val)
 
TcpOptMss getTcpOptMss ()
 
- 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

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

Definition at line 137 of file AxisTcp.hpp.

Constructor & Destructor Documentation

◆ AxisTcp() [1/4]

AxisTcp::AxisTcp ( )
inline

Definition at line 140 of file AxisTcp.hpp.

140 {}

◆ AxisTcp() [2/4]

AxisTcp::AxisTcp ( AxisRaw  axisRaw)
inline

Definition at line 141 of file AxisTcp.hpp.

141  :
142  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

◆ AxisTcp() [3/4]

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

Definition at line 143 of file AxisTcp.hpp.

143  :
144  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

◆ AxisTcp() [4/4]

AxisTcp::AxisTcp ( const AxisTcp axisTcp)
inline

Definition at line 145 of file AxisTcp.hpp.

145  :
146  AxisRaw(axisTcp.tdata, axisTcp.tkeep, axisTcp.tlast) {}

Member Function Documentation

◆ getLE_TcpDstPort()

LE_TcpPort AxisTcp::getLE_TcpDstPort ( )
inline

Definition at line 162 of file AxisTcp.hpp.

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

◆ getLE_TcpSrcPort()

LE_TcpPort AxisTcp::getLE_TcpSrcPort ( )
inline

Definition at line 156 of file AxisTcp.hpp.

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

◆ getTcpAckNum()

TcpAckNum AxisTcp::getTcpAckNum ( )
inline

Definition at line 172 of file AxisTcp.hpp.

172 { return swapDWord(tdata.range(31, 0)); }

◆ getTcpChecksum()

TcpChecksum AxisTcp::getTcpChecksum ( )
inline

Definition at line 201 of file AxisTcp.hpp.

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

◆ getTcpCtrlAck()

TcpCtrlBit AxisTcp::getTcpCtrlAck ( )
inline

Definition at line 189 of file AxisTcp.hpp.

189 { return tdata.bit(44); }

◆ getTcpCtrlFin()

TcpCtrlBit AxisTcp::getTcpCtrlFin ( )
inline

Definition at line 181 of file AxisTcp.hpp.

181 { return tdata.bit(40); }

◆ getTcpCtrlPsh()

TcpCtrlBit AxisTcp::getTcpCtrlPsh ( )
inline

Definition at line 187 of file AxisTcp.hpp.

187 { return tdata.bit(43); }

◆ getTcpCtrlRst()

TcpCtrlBit AxisTcp::getTcpCtrlRst ( )
inline

Definition at line 185 of file AxisTcp.hpp.

185 { return tdata.bit(42); }

◆ getTcpCtrlSyn()

TcpCtrlBit AxisTcp::getTcpCtrlSyn ( )
inline

Definition at line 183 of file AxisTcp.hpp.

183 { return tdata.bit(41); }

◆ getTcpCtrlUrg()

TcpCtrlBit AxisTcp::getTcpCtrlUrg ( )
inline

Definition at line 191 of file AxisTcp.hpp.

191 { return tdata.bit(45); }

◆ getTcpDataOff()

TcpDataOff AxisTcp::getTcpDataOff ( )
inline

Definition at line 177 of file AxisTcp.hpp.

177 { return tdata.range(39, 36); }

◆ getTcpDstPort()

TcpPort AxisTcp::getTcpDstPort ( )
inline

Definition at line 161 of file AxisTcp.hpp.

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

◆ getTcpOptKind()

TcpOptKind AxisTcp::getTcpOptKind ( )
inline

Definition at line 211 of file AxisTcp.hpp.

211 { return tdata.range(39, 32); }

◆ getTcpOptMss()

TcpOptMss AxisTcp::getTcpOptMss ( )
inline

Definition at line 215 of file AxisTcp.hpp.

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

◆ getTcpSeqNum()

TcpSeqNum AxisTcp::getTcpSeqNum ( )
inline

Definition at line 167 of file AxisTcp.hpp.

167 { return swapDWord(tdata.range(63, 32)); }

◆ getTcpSrcPort()

TcpPort AxisTcp::getTcpSrcPort ( )
inline

Definition at line 155 of file AxisTcp.hpp.

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

◆ getTcpUrgPtr()

TcpUrgPtr AxisTcp::getTcpUrgPtr ( )
inline

Definition at line 206 of file AxisTcp.hpp.

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

◆ getTcpWindow()

TcpWindow AxisTcp::getTcpWindow ( )
inline

Definition at line 196 of file AxisTcp.hpp.

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

◆ setTcpAckNum()

void AxisTcp::setTcpAckNum ( TcpAckNum  num)
inline

Definition at line 170 of file AxisTcp.hpp.

170 { tdata.range(31, 0) = swapDWord(num); }

◆ setTcpChecksum()

void AxisTcp::setTcpChecksum ( TcpChecksum  csum)
inline

Definition at line 199 of file AxisTcp.hpp.

199 { tdata.range(15, 0) = swapWord(csum); }

◆ setTcpCtrlAck()

void AxisTcp::setTcpCtrlAck ( TcpCtrlBit  bit)
inline

Definition at line 188 of file AxisTcp.hpp.

188 { tdata.bit(44) = bit; }

◆ setTcpCtrlFin()

void AxisTcp::setTcpCtrlFin ( TcpCtrlBit  bit)
inline

Definition at line 180 of file AxisTcp.hpp.

180 { tdata.bit(40) = bit; }

◆ setTcpCtrlPsh()

void AxisTcp::setTcpCtrlPsh ( TcpCtrlBit  bit)
inline

Definition at line 186 of file AxisTcp.hpp.

186 { tdata.bit(43) = bit; }

◆ setTcpCtrlRst()

void AxisTcp::setTcpCtrlRst ( TcpCtrlBit  bit)
inline

Definition at line 184 of file AxisTcp.hpp.

184 { tdata.bit(42) = bit; }

◆ setTcpCtrlSyn()

void AxisTcp::setTcpCtrlSyn ( TcpCtrlBit  bit)
inline

Definition at line 182 of file AxisTcp.hpp.

182 { tdata.bit(41) = bit; }

◆ setTcpCtrlUrg()

void AxisTcp::setTcpCtrlUrg ( TcpCtrlBit  bit)
inline

Definition at line 190 of file AxisTcp.hpp.

190 { tdata.bit(45) = bit; }

◆ setTcpDataOff()

void AxisTcp::setTcpDataOff ( TcpDataOff  offset)
inline

Definition at line 175 of file AxisTcp.hpp.

175 { tdata.range(39, 36) = offset; }

◆ setTcpDstPort()

void AxisTcp::setTcpDstPort ( TcpPort  port)
inline

Definition at line 159 of file AxisTcp.hpp.

159 { tdata.range(31, 16) = swapWord(port); }

◆ setTcpOptKind()

void AxisTcp::setTcpOptKind ( TcpOptKind  val)
inline

Definition at line 209 of file AxisTcp.hpp.

209 { tdata.range(39, 32); }

◆ setTcpOptMss()

void AxisTcp::setTcpOptMss ( TcpOptMss  val)
inline

Definition at line 213 of file AxisTcp.hpp.

213 { tdata.range(63, 48); }

◆ setTcpSeqNum()

void AxisTcp::setTcpSeqNum ( TcpSeqNum  num)
inline

Definition at line 165 of file AxisTcp.hpp.

165 { tdata.range(63, 32) = swapDWord(num); }

◆ setTcpSrcPort()

void AxisTcp::setTcpSrcPort ( TcpPort  port)
inline

TCP HEADER HELPERS

Definition at line 153 of file AxisTcp.hpp.

153 { tdata.range(15, 0) = swapWord(port); }

◆ setTcpUrgPtr()

void AxisTcp::setTcpUrgPtr ( TcpUrgPtr  ptr)
inline

Definition at line 204 of file AxisTcp.hpp.

204 { tdata.range(31, 16) = swapWord(ptr); }

◆ setTcpWindow()

void AxisTcp::setTcpWindow ( TcpWindow  win)
inline

Definition at line 194 of file AxisTcp.hpp.

194 { tdata.range(63, 48) = swapWord(win); }

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