Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
random.h
- Committer:
- gwappa
- Date:
- 2018-05-14
- Revision:
- 2:0c241937eabd
- Parent:
- 0:f736749c33d2
- Child:
- 13:8ea85a33e37a
File content as of revision 2:0c241937eabd:
#ifndef RANDOM_H__ #define RANDOM_H__ #define RANDOM_NOISE_PIN PA_0 namespace random { typedef unsigned short uint16_t; const unsigned int MAX_RESOLUTION = 65535; void init(); uint16_t unif(const uint16_t& nlevels); uint16_t exponential(const uint16_t& tau_ms, const uint16_t& cutoff, const unsigned int& resolution=MAX_RESOLUTION); } #endif