![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
Go to the source code of this file.
Macros | |
| #define | LIB_MATH_EXT extern |
| #define | RAND_SEED_INIT_VAL 1u /* See Note #1a. */ |
| #define | RAND_LCG_PARAM_M 0x7FFFFFFFu /* See Note #1b2B. */ |
| #define | RAND_LCG_PARAM_A 1103515245u /* See Note #1b1A2. */ |
| #define | RAND_LCG_PARAM_B 12345u /* See Note #1b1A3. */ |
Typedefs | |
| typedef CPU_INT32U | RAND_NBR |
Functions | |
| void | Math_Init (void) |
| void | Math_RandSetSeed (RAND_NBR seed) |
| RAND_NBR | Math_Rand (void) |
| RAND_NBR | Math_RandSeed (RAND_NBR seed) |
| #define LIB_MATH_EXT extern |
Definition at line 122 of file lib_math.h.
| #define RAND_LCG_PARAM_A 1103515245u /* See Note #1b1A2. */ |
Definition at line 170 of file lib_math.h.
| #define RAND_LCG_PARAM_B 12345u /* See Note #1b1A3. */ |
Definition at line 171 of file lib_math.h.
| #define RAND_LCG_PARAM_M 0x7FFFFFFFu /* See Note #1b2B. */ |
Definition at line 169 of file lib_math.h.
| #define RAND_SEED_INIT_VAL 1u /* See Note #1a. */ |
Definition at line 167 of file lib_math.h.
| typedef CPU_INT32U RAND_NBR |
Definition at line 187 of file lib_math.h.
| void Math_Init | ( | void | ) |
Definition at line 145 of file lib_math.c.
| RAND_NBR Math_Rand | ( | void | ) |
Definition at line 215 of file lib_math.c.
Definition at line 273 of file lib_math.c.
| void Math_RandSetSeed | ( | RAND_NBR | seed | ) |
Definition at line 174 of file lib_math.c.