cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Functions | |
def | udp_rx_loop (clientSock, serverSock, size, ip_da, udp_dp, count, verbose=False) |
Variables | |
parser = argparse.ArgumentParser(description='A script to receive UDP data from an FPGA module.') | |
type | |
str | |
default | |
help | |
int | |
action | |
args = parser.parse_args() | |
ipFpga = getFpgaIpv4(args) | |
instId = getInstanceId(args) | |
ipResMngr = getResourceManagerIpv4(args) | |
portFpgaServer = XMIT_MODE_LSN_PORT | |
portResMngr = getResourceManagerPort(args) | |
tuple | fpgaServerAssociation = (str(ipFpga), portFpgaServer) |
int | dpHost = 2718 |
tuple | fpgaClientAssociation = (str(ipFpga), dpHost) |
udpClientSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
udpServerSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
hostname = socket.gethostname() | |
ipHostStr = socket.gethostbyname(hostname) | |
ip4Str = ni.ifaddresses(itf)[AF_INET][0]['addr'] | |
ipHost = int(ipaddress.IPv4Address(ipHostStr)) | |
seed = args.seed | |
size = args.size | |
count = args.loop_count | |
def tc_UdpRecv.udp_rx_loop | ( | clientSock, | |
serverSock, | |||
size, | |||
ip_da, | |||
udp_dp, | |||
count, | |||
verbose = False |
|||
) |
UDP Rx Single-Thread Ramp. Requests the FPGA to open a new active port and expects to receive 'count' datagrams of 'size' bytes. Each datagram is made of the following repetitive pattern '48692066726f6d200x464d4b553630210a' which decodes into the string "Hi from FMKU60\n". :param clientSock The socket to send to. :param serverSock The socket to receive from. :param size The size of the expected segment. :param ip_da The destination address of the host. :param udp_dp The active destination port number that the FPGA is requested to open. :param count The number of datagrams to receive. :param verbose Enables verbosity. :return None
Definition at line 43 of file tc_UdpRecv.py.
tc_UdpRecv.action |
Definition at line 170 of file tc_UdpRecv.py.
tc_UdpRecv.args = parser.parse_args() |
Definition at line 173 of file tc_UdpRecv.py.
tc_UdpRecv.count = args.loop_count |
Definition at line 311 of file tc_UdpRecv.py.
tc_UdpRecv.default |
Definition at line 152 of file tc_UdpRecv.py.
int tc_UdpRecv.dpHost = 2718 |
Definition at line 213 of file tc_UdpRecv.py.
Definition at line 214 of file tc_UdpRecv.py.
tuple tc_UdpRecv.fpgaServerAssociation = (str(ipFpga), portFpgaServer) |
Definition at line 209 of file tc_UdpRecv.py.
tc_UdpRecv.help |
Definition at line 153 of file tc_UdpRecv.py.
tc_UdpRecv.hostname = socket.gethostname() |
Definition at line 249 of file tc_UdpRecv.py.
tc_UdpRecv.instId = getInstanceId(args) |
Definition at line 185 of file tc_UdpRecv.py.
tc_UdpRecv.int |
Definition at line 154 of file tc_UdpRecv.py.
tc_UdpRecv.ip4Str = ni.ifaddresses(itf)[AF_INET][0]['addr'] |
Definition at line 256 of file tc_UdpRecv.py.
tc_UdpRecv.ipFpga = getFpgaIpv4(args) |
Definition at line 181 of file tc_UdpRecv.py.
Definition at line 265 of file tc_UdpRecv.py.
string tc_UdpRecv.ipHostStr = socket.gethostbyname(hostname) |
Definition at line 250 of file tc_UdpRecv.py.
tc_UdpRecv.ipResMngr = getResourceManagerIpv4(args) |
Definition at line 189 of file tc_UdpRecv.py.
tc_UdpRecv.portFpgaServer = XMIT_MODE_LSN_PORT |
Definition at line 193 of file tc_UdpRecv.py.
tc_UdpRecv.portResMngr = getResourceManagerPort(args) |
Definition at line 197 of file tc_UdpRecv.py.
tc_UdpRecv.seed = args.seed |
Definition at line 296 of file tc_UdpRecv.py.
tc_UdpRecv.size = args.size |
Definition at line 302 of file tc_UdpRecv.py.
tc_UdpRecv.str |
Definition at line 152 of file tc_UdpRecv.py.
tc_UdpRecv.type |
Definition at line 152 of file tc_UdpRecv.py.
tc_UdpRecv.udpClientSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
Definition at line 219 of file tc_UdpRecv.py.
tc_UdpRecv.udpServerSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
Definition at line 228 of file tc_UdpRecv.py.