Macros | |
#define | D4D_ANGLE_DEG(deg) |
#define | D4D_MulDivUU |
#define | D4D_MulDivSU |
#define | D4D_LimitU |
#define | D4D_LimitS |
Functions | |
sByte | D4D_Sin (Byte x) |
Sine calculation using lookup table. More... | |
sByte | D4D_Cos (Byte x) |
Cosine calculation using lookup table. More... | |
Byte | D4D_MulDivUU8 (Byte u1, Byte u2, Byte d) |
Simple proportion unsigned calculation - 8 bit. More... | |
sByte | D4D_MulDivSU8 (sByte s, Byte u, Byte d) |
Simple proportion signed calculation - 8 bit. More... | |
Word | D4D_MulDivUU16 (Word u1, Word u2, Word d) |
Simple proportion unsigned calculation - 16 bit. More... | |
sWord | D4D_MulDivSU16 (sWord s, Word u, Word d) |
Simple proportion signed calculation - 8 bit. More... | |
Byte | D4D_Abs (sByte num) |
Calculation of absolute value - 8 bit. More... | |
Word | D4D_Abs16 (sWord num) |
Calculation of absolute value - 16 bit. More... | |
LWord | D4D_Abs32 (sLWord num) |
Calculation of absolute value - 32 bit. More... | |
Word | D4D_LimitU16 (Word val, Word min, Word max) |
Calculation of limitation value (unsigned) - 16 bit. More... | |
sWord | D4D_LimitS16 (sWord val, sWord min, sWord max) |
Calculation of limitation value (signed) - 16 bit. More... | |
Byte | D4D_LimitU8 (Byte val, Byte min, Byte max) |
Calculation of limitation value (unsigned) - 8 bit. More... | |
sByte | D4D_LimitS8 (sByte val, sByte min, sByte max) |
Calculation of limitation value (signed) - 8 bit. More... | |
D4D Driver math helper functions header file.
Definition in file d4d_math.h.
#define D4D_ANGLE_DEG | ( | deg | ) |
Definition at line 66 of file d4d_math.h.
#define D4D_LimitS |
Definition at line 106 of file d4d_math.h.
#define D4D_LimitU |
Definition at line 105 of file d4d_math.h.
#define D4D_MulDivSU |
Definition at line 104 of file d4d_math.h.
#define D4D_MulDivUU |
Definition at line 103 of file d4d_math.h.