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

#include <AxisUdp.hpp>

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

Public Member Functions

 AxisUdp ()
 
 AxisUdp (AxisRaw axisRaw)
 
 AxisUdp (LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
 
 AxisUdp (const AxisUdp &axisUdp)
 
void setUdpSrcPort (UdpPort port)
 
UdpPort getUdpSrcPort ()
 
LE_UdpPort getLE_UdpSrcPort ()
 
void setUdpDstPort (UdpPort port)
 
UdpPort getUdpDstPort ()
 
LE_UdpPort getLE_UdpDstPort ()
 
void setUdpLen (UdpLen length)
 
UdpLen getUdpLen ()
 
LE_UdpLen getLE_UdpLen ()
 
void setUdpCsum (UdpCsum csum)
 
UdpCsum 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

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

Definition at line 113 of file AxisUdp.hpp.

Constructor & Destructor Documentation

◆ AxisUdp() [1/4]

AxisUdp::AxisUdp ( )
inline

Definition at line 116 of file AxisUdp.hpp.

116 {}

◆ AxisUdp() [2/4]

AxisUdp::AxisUdp ( AxisRaw  axisRaw)
inline

Definition at line 117 of file AxisUdp.hpp.

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

◆ AxisUdp() [3/4]

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

Definition at line 119 of file AxisUdp.hpp.

119  :
120  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

◆ AxisUdp() [4/4]

AxisUdp::AxisUdp ( const AxisUdp axisUdp)
inline

Definition at line 121 of file AxisUdp.hpp.

121  :
122  AxisRaw(axisUdp.tdata, axisUdp.tkeep, axisUdp.tlast) {}

Member Function Documentation

◆ getLE_UdpDstPort()

LE_UdpPort AxisUdp::getLE_UdpDstPort ( )
inline

Definition at line 136 of file AxisUdp.hpp.

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

◆ getLE_UdpLen()

LE_UdpLen AxisUdp::getLE_UdpLen ( )
inline

Definition at line 141 of file AxisUdp.hpp.

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

◆ getLE_UdpSrcPort()

LE_UdpPort AxisUdp::getLE_UdpSrcPort ( )
inline

Definition at line 131 of file AxisUdp.hpp.

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

◆ getUdpCsum()

UdpCsum AxisUdp::getUdpCsum ( )
inline

Definition at line 145 of file AxisUdp.hpp.

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

◆ getUdpDstPort()

UdpPort AxisUdp::getUdpDstPort ( )
inline

Definition at line 135 of file AxisUdp.hpp.

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

◆ getUdpLen()

UdpLen AxisUdp::getUdpLen ( )
inline

Definition at line 140 of file AxisUdp.hpp.

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

◆ getUdpSrcPort()

UdpPort AxisUdp::getUdpSrcPort ( )
inline

Definition at line 130 of file AxisUdp.hpp.

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

◆ setUdpCsum()

void AxisUdp::setUdpCsum ( UdpCsum  csum)
inline

Definition at line 144 of file AxisUdp.hpp.

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

◆ setUdpDstPort()

void AxisUdp::setUdpDstPort ( UdpPort  port)
inline

Definition at line 134 of file AxisUdp.hpp.

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

◆ setUdpLen()

void AxisUdp::setUdpLen ( UdpLen  length)
inline

Definition at line 139 of file AxisUdp.hpp.

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

◆ setUdpSrcPort()

void AxisUdp::setUdpSrcPort ( UdpPort  port)
inline

UDP HEADER HELPERS

Definition at line 129 of file AxisUdp.hpp.

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

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