ocssw
V2022
|
usrmac.h File Reference
Include dependency graph for usrmac.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Macros | |
#define | PRIVATE static |
#define | bool int |
#define | TRUE (1) |
#define | FALSE (0) |
#define | S_FILE_FOUND -3 |
#define | S_FILE_NOT_FOUND -2 |
#define | S_ERROR -1 |
#define | S_SUCCESS 0 |
#define | S_END_OF_FILE 1 |
#define | NOPRINT 1 |
#define | PRINTF if (!NOPRINT) printf |
#define | FPRINTF if (!NOPRINT) fprintf |
#define | CHKPRT1(FMT, ARG) PRINTF("%s="FMT,"ARG",ARG) |
#define | CHKPRT2(FMT, ARG1, ARG2) PRINTF("%s="FMT,"ARG1,ARG2",ARG1,ARG2) |
#define | CHKIPRT(EX) PRINTF("%s=%d\n","EX",EX) |
#define | CHKFPRT(EX) PRINTF("%s=%f\n","EX",EX) |
#define | CHKSPRT(EX) PRINTF("%s=%s\n","EX",EX) |
#define | MAXV(a, b) (((a) > (b)) ? (a) : (b)) |
#define | MINV(a, b) (((a) > (b)) ? (b) : (a)) |
#define | MODV(a, b) ((a) - ((a)/(b))*(b)) |
#define | AX_PLUS_B(X, A, B) (A) * (X) + (B) |
#define | R_AX_PLUS_B(Y, A, B) ((Y) - (B)) / (A) |
#define | INRANGE(v, lo, hi) (((v - lo) >= 0) && ((hi - v) >= 0)) |
#define | ON_TIME() |
#define | OFF_TIME() |
#define | TRACE trace |
#define | PROTO(x) () |
#define | byte unsigned char |
#define | SC sizeof(char) |
#define | SB sizeof(byte) |
#define | SS sizeof(short int) |
#define | SI sizeof(int) |
#define | SL sizeof(int32_t int) |
#define | SF sizeof(float) |
#define | SD sizeof(double) |
#define | NODATA |
#define | FAKEDATA |
#define | FAKEDEF |
#define | ISSUE |
#define | OPTIONS_ON 1 |
#define | OPTIONS_OFF 0 |
#define | OPTIONS OPTIONS_OFF |
#define | OPTIONS_START() ; if (OPTIONS) { |
#define | OPTIONS_STOP() ; } |
#define | MSEC2SEC(x) ((x + 500)/1000) |
#define | SEC2MSEC(x) (x * 1000) |
Macro Definition Documentation
◆ AX_PLUS_B
◆ bool
◆ byte
◆ CHKFPRT
◆ CHKIPRT
◆ CHKPRT1
◆ CHKPRT2
#define CHKPRT2 | ( | FMT, | |
ARG1, | |||
ARG2 | |||
) | PRINTF("%s="FMT,"ARG1,ARG2",ARG1,ARG2) |
◆ CHKSPRT
◆ FAKEDATA
◆ FAKEDEF
◆ FALSE
◆ FPRINTF
◆ INRANGE
◆ ISSUE
◆ MAXV
◆ MINV
◆ MODV
◆ MSEC2SEC
◆ NODATA
◆ NOPRINT
◆ OFF_TIME
◆ ON_TIME
◆ OPTIONS
#define OPTIONS OPTIONS_OFF |