modm API documentation
modm::platform::RandomNumberGenerator Class Reference

#include <modm/platform/random/random_number_generator.hpp>

Static Public Member Functions

static void enable ()
 
static void disable ()
 
static bool isReady ()
 
static uint32_t getValue ()
 

Detailed Description

Random Number Generator

Author
Fabian Greif

Member Function Documentation

static uint32_t modm::platform::RandomNumberGenerator::getValue ( )
inlinestatic

Read the generated 32-bit random number

Once read isReady() will return false until a new number has be generated.

static bool modm::platform::RandomNumberGenerator::isReady ( )
inlinestatic

Check if a new random number is ready

Returns
true if a new random number has been generated and can be read via getValue()

The documentation for this class was generated from the following file: