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