49 #if defined(HAS_WEBSERVER)
51 BYTE btohexa_high(BYTE b);
52 BYTE btohexa_low(BYTE b);
56 #define delay_us(us) nzDelayUs(us)
57 #define delay_ms(ms) nzDelayMs(ms)
78 #define DWORD_BYTE0(dw) ((unsigned char)((dw)&0xFF))
79 #define DWORD_BYTE1(dw) ((unsigned char)(((dw)>>8)&0xFF))
80 #define DWORD_BYTE2(dw) ((unsigned char)(((dw)>>16)&0xFF))
81 #define DWORD_BYTE3(dw) ((unsigned char)(((dw)>>24)&0xFF))
90 #define nzDwordGetLowByte_MACRO(dw) ((unsigned char)((dw)&0xFF))
91 #define DWORD_LOW_BYTE(dw) ((unsigned char)((dw)&0xFF))
100 #define nzDwordGetHighByte_MACRO(dw) ((unsigned char)(((dw)>>24)&0xFF))
101 #define DWORD_HIGH_BYTE(dw) ((unsigned char)(((dw)>>24)&0xFF))
111 #define nzDwordGetLowWord_MACRO(dw) ((unsigned char)((dw)&0xFFFF))
112 #define DWORD_LOW_WORD(dw) ((unsigned char)((dw)&0xFFFF))
122 #define nzDwordGetHighWord_MACRO(dw) ((unsigned char)(((dw)>>16)&0xFFFF))
123 #define DWORD_HIGH_WORD(dw) ((unsigned char)(((dw)>>16)&0xFFFF))
125 #define WORD_BYTE0(w) ((unsigned char)((w)&0xFF))
126 #define WORD_BYTE1(w) ((unsigned char)(((w)>>8)&0xFF))
135 #define nzWordGetLowByte_MACRO(w) ((unsigned char)((w)&0xFF))
136 #define WORD_LOW_BYTE(w) ((unsigned char)((w)&0xFF))
144 #define nzWordGetHighByte_MACRO(w) ((unsigned char)(((w)>>8)&0xFF))
145 #define WORD_HIGH_BYTE(w) ((unsigned char)(((w)>>8)&0xFF))
155 #define nzByteGetLowNibble_MACRO(b) ((unsigned char)((b)&0x0F))
156 #define BYTE_LOW_NIBBLE(b) ((unsigned char)((b)&0x0F))
166 #define nzByteGetHighNibble_MACRO(b) ((unsigned char)(((b)>>4)&0x0F))
167 #define BYTE_HIGH_NIBBLE(b) ((unsigned char)(((b)>>4)&0x0F))
177 #define nzWordSetHighByte_MACRO(w, b) (((BYTE*)&(w))[1] = (b))
187 #define nzWordSetLowByte_MACRO(w, b) (((BYTE*)&(w))[0] = (b))
198 #define nzWordFromBytes_MACRO(msb,lsb) ( ((WORD)((msb)<<8)) | ((WORD)(lsb)) )
199 #define WORD_FROM_BYTES(msb,lsb) ( ((WORD)((msb)<<8)) | ((WORD)(lsb)) )
213 #if defined(HAS_WEBSERVER)
214 #define nzAsciiHexToByte(asciiChars) hexatob(asciiChars)
267 #if defined(HAS_WEBSERVER)
268 #define nzLowNibbleToAsciiHex(b) btohexa_low(b)
280 #if defined(HAS_WEBSERVER)
281 #define nzHighNibbleToAsciiHex(b) btohexa_high(b)
387 void nzMemCpy(BYTE* pDst, BYTE* pSrc, WORD count);