This section provides explanations of the TWENET library and AHI functions related to random numbers.
Random (Random Numbers)
Implementation of AHI-compatible functions related to random number generation.
- This implementation is not intended to maintain full compatibility.
- Notes and considerations known at the time of writing are described here.
- Internal implementations may change without notice.
- For parameters mentioned in the explanations, only items requiring attention are described; for omitted parts, refer to the original AHI library manual.
vAHI_Start|StopRandomNumberGenerator()
void vAHI_StartRandomNumberGenerator(bool_t const bMode, bool_t const bIntEn);
void vAHI_StopRandomNumberGenerator(void);
Starts or stops random number generation.
u16AHI_ReadRandomNumber()
uint16 u16AHI_ReadRandomNumber(void);
Reads a 16-bit random value.
- If random number generation has not been started, returns
57005
.
u32AHI_ReadRandomNumber_MW()
uint32 u32AHI_ReadRandomNumber_MW(void);
(TWELITE GOLD only) Reads a 32-bit random value.
- If random number generation has not been started, returns
3735928559
.
vAHI_ReinitRandomNumberGenerator_MW()
void vAHI_ReinitRandomNumberGenerator_MW();
(TWELITE GOLD only) Reinitializes the random number generator device.