#include "net\compiler.h"
Functions | |
| BYTE | btohexa_high (BYTE b) |
| WORD | CalcIPBufferChecksum (WORD len) |
| WORD | CalcIPChecksum (BYTE *buffer, WORD len) |
| BYTE | hextob (char *s, BYTE *c) |
| void | memclr (void *dest, WORD size) |
| BYTE | strcmpee2ram (char *strRam, WORD strEe) |
| BYTE | strcpyram2ee (WORD strDst, char *strSrc, BYTE len) |
| DWORD | swapl (DWORD v) |
| WORD | swaps (WORD v) |
| b | An ascii byte (always uppercase) between '0'-'9' or 'A'-'F' that corresponds to the upper 4 bits of the input byte. ex: b = 0xAE, btohexa_high() returns 'A' |
This function performs checksum calculation in MAC buffer itself.
| len | Total number of bytes to calculate checksum for |
Converts the given hex string to a byte value
| s | Input string. First two characters of string must contain hex string. For example "8F" or "8f" | |
| c | Will contain the byte representation of the given string on return. |
| void memclr | ( | void * | dest, | |
| WORD | size | |||
| ) |
Fills the given number of bytes in the given array with 0
| dest | Pointer to memory area in RAM that has to be set to 0 | |
| size | Number of consecutive bytes to set to 0 |
Compare two strings.
| strRam | Pointer to null terminated string contained in RAM | |
| strEe | Address (offset) in EEPROM of null terminated string |
Copies the source string (in RAM) to the given destination in EEPROM. Characters in strSrc are copied up to, and including, the terminating null character strSrc.
| strSrc | Pointer to null terminated Source string contained in RAM. | |
| strDst | Destination address (offset) in the EEPROM | |
| len | The maximum string length that is allowed to be written (excluding NULL terminating char). If the source string is longer then this value, the destination will be truncated with a NULL! To disable length checking, set this value to 255. For example, if len = 8, then that string can have a maximum of 8 characters = 8 + NULL. The destination must always have len + 1 positions available! |
1.4.7