embkernel
 All Classes Functions Variables Typedefs Groups Pages
DrvFlash.hpp
1 //------------------------------------------------------------------------------
2 //This file is part of embKernel.
3 //See license.txt for the full license governing this code.
4 //------------------------------------------------------------------------------
5 
6 #ifndef DRV_FLASH_HPP_
7 #define DRV_FLASH_HPP_
8 
9 #include <stddef.h>
10 
11 class DrvFlash {
12 public:
13  static void unlock();
14  static void lock();
15  static bool erasePage(unsigned int page);
16  static bool write(const void* dst, const void* src, size_t len);
17 private:
18  static bool waitActionComplete();
19 };
20 
21 #endif /* DRV_FLASH_HPP_ */