Git Product home page Git Product logo

lib_xtcp's Introduction

TCP/IP Library

Overview

A library providing two alternative TCP/UDP/IP protocol stacks for XMOS devices. This library connects to the XMOS Ethernet library to provide layer-3 traffic over Ethernet via MII or RGMII.

Features

  • TCP and UDP connection handling
  • DHCP, IP4LL, ICMP, IGMP support
  • Low level, event based interface for efficient memory usage
  • Supports IPv4 only, not IPv6

Stacks

This library provides two different TCP/IP stack implementations ported to the xCORE architecture.

uIP stack

The first stack ported is the uIP (micro IP) stack. The uIP stack has been designed to have a minimal resource footprint. As a result, it has limited performance and does not provide support for TCP windowing.

lwIP stack

The second stack ported is the lwIP (lightweight IP) stack. The lwIP stack requires more resources than uIP, but is designed to provide better throughput and also has support for TCP windowing.

Typical Resource Usage

.. resusage::

  * - configuration: UIP
    - globals: xtcp_ipconfig_t ipconfig = {
               { 0, 0, 0, 0 },
               { 0, 0, 0, 0 },
               { 0, 0, 0, 0 }
               };
               char mac_addr[6] = {0};
    - locals: interface mii_if i_mii; xtcp_if i_xtcp[1];
    - fn: xtcp_uip(i_xtcp, 1, i_mii,
                   null, null, null,
                   null, 0, mac_addr, null, ipconfig);
    - pins: 0
    - ports: 0
  * - configuration: LWIP
    - globals: xtcp_ipconfig_t ipconfig = {
               { 0, 0, 0, 0 },
               { 0, 0, 0, 0 },
               { 0, 0, 0, 0 }
               };
               char mac_addr[6] = {0};
    - locals: interface mii_if i_mii; xtcp_if i_xtcp[1];
    - fn: xtcp_lwip(i_xtcp, 1, i_mii,
                   null, null, null,
                   null, 0, mac_addr, null, ipconfig);
    - pins: 0
    - ports: 0
    - target: XCORE-200-EXPLORER


Software version and dependencies

.. libdeps::

Related application notes

The following application notes use this library:

  • AN00121 - Using the XMOS TCP/IP library

lib_xtcp's People

Contributors

djpwilk avatar henkmuller avatar krisjacobs avatar mlippett avatar samchesney avatar vinithmundhra avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.