Sn.hpp
1 //
2 // Created by xiong on 2022/6/10.
3 //
4 
5 #ifndef EMX_Sn_HPP
6 #define EMX_Sn_HPP
7 
8 #include "EmxCore.hpp"
9 
10 namespace Emx {
16  class Sn {
17  public:
18  Sn() {
19  memset(m_sn, 0, sizeof(m_sn));
20  }
21 
22  static const int MaxSnSize = 64;
23 
29 
34  char *Get() { return m_sn; }
35 
41  ErrCodeE Set(const char *sn);
42 
43  private:
44  char m_sn[MaxSnSize];
45  };
46 
48 }
49 
50 #endif //EMX_Sn_HPP
提供设备序列号的获取与配置
Definition: Sn.hpp:16
ErrCodeE Load()
从flash中加载参数
Sn()
Definition: Sn.hpp:18
static const int MaxSnSize
SN字符串最大大小
Definition: Sn.hpp:22
char * Get()
获取SN
Definition: Sn.hpp:34
ErrCodeE Set(const char *sn)
设置SN
ErrCodeE
错误码定义
Definition: EmxTypeDef.hpp:29
Definition: EmxGpio.hpp:10