IsValidLength Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
IsValidLength Function
C
BYTE IsValidLength(
    WORD * len
);
Description

Checks current packet and returns total length value as well as actual length bytes.We do not support any length byte count of more than 2 i.e. total length value must not be more than 16-bit.

Preconditions

None

Parameters
Parameters 
Description 
len 
Pointer to memory where actual length is stored. 
Return Values
Return Values 
Description 
lengthBytes 
Total length bytes are 0x80 itself plus tempData. 
Remarks

None.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.