picoos-net  1.xxxx
Functions
Driver API

Functions

void netInterfaceXmit (void)
 
bool netInterfacePoll (void)
 
void netInterfaceInit (void)
 
void netInterfaceOutput (void)
 
void netEthernetInput (void)
 
void netEthernetOutput (void)
 
void netInterrupt (void)
 
void netEnableDevicePolling (UINT_t ticks)
 

Detailed Description

Function Documentation

§ netInterfaceXmit()

void netInterfaceXmit ( void  )

Device driver function: Transmit current packet to network.

§ netInterfacePoll()

bool netInterfacePoll ( void  )

Device driver function: Poll network adapter for packet. Function should return true if packet is available. It must also deliver the packet for network stack by calling netEthernetInput.

§ netInterfaceInit()

void netInterfaceInit ( void  )

Device driver function: Initialize network interface. Called by socket layer main loop during startup.

§ netInterfaceOutput()

void netInterfaceOutput ( void  )

Pass outgoing packet to interface layer for sending. Before transmitting packet ARP processing is done if needed by device driver (ethernet).

§ netEthernetInput()

void netEthernetInput ( void  )

Pass packet has been received to ethernet layer. Typically called from device driver for ethernet-type devices. Function performs either arp processing or passes packet to upper layer.

§ netEthernetOutput()

void netEthernetOutput ( void  )

Pass outgoing packet to ethernet layer. Performs arp lookup before passing packet to interface xmit function. Called by netIntefaceOutput for ethernet-type devices.

§ netInterrupt()

void netInterrupt ( void  )

Called from network driver interrupt code to wake up main loop, causing immediate processing of packet.

§ netEnableDevicePolling()

void netEnableDevicePolling ( UINT_t  ticks)

Called by network driver init code to enable device polling (instead of using interrupts).