17 #define SERIAL_NUMBER_LEN 16
19 #define SDCARD_SPI_BUS_SPEED_LEN 32
20 #define USB_BUS_SPEED_LEN 32
21 #define MACHINE_NAME_LEN 40
22 #define APP_INFO_LEN 32
23 #define PASSWORD_LN 64
24 #define SERIAL_NO_LEN 16
29 #define GM_PROVISION_EOF 1000000
30 #define GM_PROVISION_CORRUPT 1000001
31 #define GM_PROVISION_OK 1000002
33 #define GM_PROVISIONING_FIRST_RECORD_OFFSET 0
35 #define GEO_PROVISION_EOF (0x01010101)
36 #define GEO_PROVISION_EOF_SIZE 8
37 #define GEO_PROV_EOF_TYPE (0x01010101)
42 #define GEO_PROVISIONING_BASE_BLOCK_OBSOLETE0 0x00
43 #define GEO_PROVISIONING_BASE_BLOCK_OBSOLETE1 0x01
44 #define GEO_PROVISIONING_BASE_BLOCK 0x02
45 #define GEO_PROVISIONING_NETWORK_BLOCK 0x03
48 #define E2PROM_TEST_ADDRESS 0x100
56 uint32_t m_iRecordType;
57 uint32_t m_iRecordSize;
58 char m_iMachineName [MACHINE_NAME_LEN+4];
59 char m_iSSID [SSID_LEN+4];
60 char m_password[PASSWORD_LN+4];
61 char m_serialNumber [SERIAL_NO_LEN+4];
62 int m_iSystemBoardType;
70 uint32_t m_iRecordType;
71 uint32_t m_iRecordSize;
72 char m_ipv4AddressAsString[16];
77 #define GM_BASIC_PROVISIONING_SIZE (sizeof(GeoMachineProvisioning))
81 uint32_t m_iRecordType;
82 uint32_t m_iRecordSize;
91 static int ClearProvisioning ();
92 static int EraseProvisioning ();
98 static int InitializeGeoMachineProvisioningParameters(
GeoMachinePtr );
100 #if GEO_STATIC_NETWORK_PROVISIONED == GEO_TRUE
106 static void InitEEPROM_ConfigProvisioning(
void);
108 static int FindProvisioningRecord (uint32_t startAddress,
110 uint32_t recordSize);
111 static int OverwriteOrAppend (uint32_t startAddress,
116 static int GetProvisioningRecord (uint32_t startAddress,
124 static int WriteProvisionParametersToEEPROM(
void *ptr , uint32_t location,
int size );
127 static int ReadProvisionParametersFromEEPROM(
void *ptr , uint32_t location,
int size, uint32_t type );
Definition: GmProvision.hpp:86
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47
Definition: GmProvision.hpp:55
Definition: GmProvision.hpp:69
Definition: GmProvision.hpp:80