HiveMind
src
bsp
include
bsp
IBSP.h
Go to the documentation of this file.
1
#ifndef __IBSP_H_
2
#define __IBSP_H_
3
4
#include <cstdint>
5
6
class
IBSP
{
7
public
:
8
virtual
~IBSP
() =
default
;
9
13
virtual
void
initChip
(
void
* args) = 0;
14
18
virtual
uint16_t
getUUId
()
const
= 0;
19
23
virtual
uint32_t
generateRandomNumber
() = 0;
24
};
25
29
typedef
struct
{
30
int
m_argc
;
31
char
**
m_argv
;
32
}
CmdLineArgs
;
33
34
#endif // __IBSP_H_
IBSP::getUUId
virtual uint16_t getUUId() const =0
Returns the unique id associated with the board.
CmdLineArgs::m_argv
char ** m_argv
Definition:
IBSP.h:31
IBSP::~IBSP
virtual ~IBSP()=default
IBSP
Definition:
IBSP.h:6
CmdLineArgs::m_argc
int m_argc
Definition:
IBSP.h:30
IBSP::generateRandomNumber
virtual uint32_t generateRandomNumber()=0
Returns a positive random number, uses an hardware RNG if available.
IBSP::initChip
virtual void initChip(void *args)=0
Initialise the chip for usage. Needs to be called early in the program.
CmdLineArgs
A structure to wrap command line arguments used for certain BSPs.
Definition:
IBSP.h:29
Generated by
1.8.17