12 #ifndef __COMMONDEFS_H__ 13 #define __COMMONDEFS_H__ 25 #if (__STDC_VERSION__ >= 199901L) 30 #define bool unsigned char 32 #if ! defined(BRP_LIB) 34 #if defined(brp_lib_EXPORTS) 35 #define BRP_LIB __declspec(dllexport) 37 #define BRP_LIB __declspec(dllimport) 46 #define min(a,b) (((a)<(b))?(a):(b)) 49 #define max(a,b) (((a)>(b))?(a):(b)) 73 #define BRP_INFINITE 0xFFFFFFFF 76 #define BRP_TIME_SUBTRACT(time, delta) { \ 77 if ((time) != BRP_INFINITE) { \ 78 if ((time) < delta) (time) = 0; \ 79 else (time) -= (delta); } } unsigned long brp_time
absolute/relative timeout/delay in ms.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.