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