Generic Link-Layer Example
[IP Core Functions]

Collaboration diagram for Generic Link-Layer Example:


Files

file  fip_llgeneric.c
 Generic Link-Layer Function.

Functions

void fip_llgeneric_input (const uint8_t *srcAddr, unsigned char srcAddrLen, const uint8_t *destAddr, unsigned char destAddrLen, const uint8_t *data, unsigned int dataLen)
 Generic Link-Layer (LL) Receive Function.

Function Documentation

void fip_llgeneric_input ( const uint8_t *  srcAddr,
unsigned char  srcAddrLen,
const uint8_t *  destAddr,
unsigned char  destAddrLen,
const uint8_t *  data,
unsigned int  dataLen 
)

Generic Link-Layer (LL) Receive Function.

Note this is for reference or testing only. The function requires you to have already received your data, and then it copies it to it's own buffer. You should use this example function to write specific LL receiver functions that only use the fip buffer, and don't require double-buffering.

Parameters:
srcAddr LL Source Address, MSB first
srcAddrLen Length of LL Source Address
destAddr LL Destination Address, MSB first
destAddrLen Length of LL Destination Address
data Pointer to received data
dataLen Length of data in buffer

References fip_ll_addrLenInvalid, fip_packet_activeNew(), fip_packet_setAttr, fip_packet_setBufSize, fip_packet_setLLDestAddr, fip_packet_setLLSrcAddr, PS_PROCESSIP, and RV_OK.

Here is the call graph for this function:


Generated on Wed Dec 8 13:00:34 2010 for FIP by  doxygen 1.5.7.1