Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QSPI_DISCO_F469NI BSP_DISCO_F469NI
helpers.h
- Committer:
- stepansnigirev
- Date:
- 2019-07-30
- Revision:
- 4:73e20d662d73
- Parent:
- 0:f43431023689
File content as of revision 4:73e20d662d73:
#ifndef __HELPER_H__ #define __HELPER_H__ #include "mbed.h" #include "sdcard.h" #include "gui.h" #include <string> #include <sstream> // to use string class without std:: using namespace std; extern GUI gui; void init(); /*********** random number generator ***********/ // initializes TRNG int initRNG(); // generates a single random number uint32_t getRandomNumber(void); // fills the buffer with random data size_t getRandomBuffer(uint8_t * arr, size_t len); /*************** mnemonic stuff ***************/ // loads mnemonic from the internal storage string loadMnemonic(); // saves mnemonic to the internal storage int saveMnemonic(string mnemonic); // wipes the device (deletes mnemonic from the memory) int wipe(); #endif