OpenWSN Firmware
Main Page
Modules
Data Structures
Files
File List
Globals
openrandom.h
Go to the documentation of this file.
1
#ifndef __OPENRANDOM_H
2
#define __OPENRANDOM_H
3
11
#include "
openwsn.h
"
12
13
//=========================== define ==========================================
14
15
//=========================== typedef =========================================
16
17
//=========================== module variables ================================
18
19
typedef
struct
{
20
uint16_t
shift_reg
;
// Galois shift register used to obtain a pseudo-random number
21
}
random_vars_t
;
22
23
//=========================== prototypes ======================================
24
25
void
openrandom_init
(
void
);
26
uint16_t
openrandom_get16b
(
void
);
27
33
#endif
openrandom_init
void openrandom_init()
Definition:
openrandom.c:13
openrandom_get16b
uint16_t openrandom_get16b()
Definition:
openrandom.c:20
random_vars_t
Definition:
openrandom.h:19
openwsn.h
random_vars_t::shift_reg
uint16_t shift_reg
Definition:
openrandom.h:20
firmware
openos
openwsn
cross-layers
openrandom.h
Generated on Wed Sep 24 2014 04:39:18 for OpenWSN Firmware by
1.8.5