TCPIP_IPV6_ArrayGet Function

C

uint8_t TCPIP_IPV6_ArrayGet(
    TCPIP_MAC_PACKET* pRxPkt, 
    uint8_t * val, 
    uint16_t len
);

Description

Reads a characer of data from a packet.

Preconditions

TCPIP_IPV6_Initialize() should be called. TCPIP_IPV6_InterfaceIsReady should be true.

Parameters

ParametersDescription
pRxPktThe MAC RX packet to read data from.
valThe buffer to store the data.
lenThe amount of data to read.

Returns

  • > 0 - The number of bytes read.

  • 0 - No byte is available to read.

Remarks

None.