@@ -48,6 +48,7 @@ var MsgFlashProgram = function (sbp, fields) {
48
48
return this ;
49
49
} ;
50
50
MsgFlashProgram . prototype = Object . create ( SBP . prototype ) ;
51
+ MsgFlashProgram . prototype . messageType = "MSG_FLASH_PROGRAM" ;
51
52
MsgFlashProgram . prototype . msg_type = 0x00E6 ;
52
53
MsgFlashProgram . prototype . constructor = MsgFlashProgram ;
53
54
MsgFlashProgram . prototype . parser = new Parser ( )
@@ -82,6 +83,7 @@ var MsgFlashDone = function (sbp, fields) {
82
83
return this ;
83
84
} ;
84
85
MsgFlashDone . prototype = Object . create ( SBP . prototype ) ;
86
+ MsgFlashDone . prototype . messageType = "MSG_FLASH_DONE" ;
85
87
MsgFlashDone . prototype . msg_type = 0x00E0 ;
86
88
MsgFlashDone . prototype . constructor = MsgFlashDone ;
87
89
MsgFlashDone . prototype . parser = new Parser ( )
@@ -114,6 +116,7 @@ var MsgFlashReadReq = function (sbp, fields) {
114
116
return this ;
115
117
} ;
116
118
MsgFlashReadReq . prototype = Object . create ( SBP . prototype ) ;
119
+ MsgFlashReadReq . prototype . messageType = "MSG_FLASH_READ_REQ" ;
117
120
MsgFlashReadReq . prototype . msg_type = 0x00E7 ;
118
121
MsgFlashReadReq . prototype . constructor = MsgFlashReadReq ;
119
122
MsgFlashReadReq . prototype . parser = new Parser ( )
@@ -150,6 +153,7 @@ var MsgFlashReadResp = function (sbp, fields) {
150
153
return this ;
151
154
} ;
152
155
MsgFlashReadResp . prototype = Object . create ( SBP . prototype ) ;
156
+ MsgFlashReadResp . prototype . messageType = "MSG_FLASH_READ_RESP" ;
153
157
MsgFlashReadResp . prototype . msg_type = 0x00E1 ;
154
158
MsgFlashReadResp . prototype . constructor = MsgFlashReadResp ;
155
159
MsgFlashReadResp . prototype . parser = new Parser ( )
@@ -184,6 +188,7 @@ var MsgFlashErase = function (sbp, fields) {
184
188
return this ;
185
189
} ;
186
190
MsgFlashErase . prototype = Object . create ( SBP . prototype ) ;
191
+ MsgFlashErase . prototype . messageType = "MSG_FLASH_ERASE" ;
187
192
MsgFlashErase . prototype . msg_type = 0x00E2 ;
188
193
MsgFlashErase . prototype . constructor = MsgFlashErase ;
189
194
MsgFlashErase . prototype . parser = new Parser ( )
@@ -213,6 +218,7 @@ var MsgStmFlashLockSector = function (sbp, fields) {
213
218
return this ;
214
219
} ;
215
220
MsgStmFlashLockSector . prototype = Object . create ( SBP . prototype ) ;
221
+ MsgStmFlashLockSector . prototype . messageType = "MSG_STM_FLASH_LOCK_SECTOR" ;
216
222
MsgStmFlashLockSector . prototype . msg_type = 0x00E3 ;
217
223
MsgStmFlashLockSector . prototype . constructor = MsgStmFlashLockSector ;
218
224
MsgStmFlashLockSector . prototype . parser = new Parser ( )
@@ -240,6 +246,7 @@ var MsgStmFlashUnlockSector = function (sbp, fields) {
240
246
return this ;
241
247
} ;
242
248
MsgStmFlashUnlockSector . prototype = Object . create ( SBP . prototype ) ;
249
+ MsgStmFlashUnlockSector . prototype . messageType = "MSG_STM_FLASH_UNLOCK_SECTOR" ;
243
250
MsgStmFlashUnlockSector . prototype . msg_type = 0x00E4 ;
244
251
MsgStmFlashUnlockSector . prototype . constructor = MsgStmFlashUnlockSector ;
245
252
MsgStmFlashUnlockSector . prototype . parser = new Parser ( )
@@ -265,6 +272,7 @@ var MsgStmUniqueIdReq = function (sbp, fields) {
265
272
return this ;
266
273
} ;
267
274
MsgStmUniqueIdReq . prototype = Object . create ( SBP . prototype ) ;
275
+ MsgStmUniqueIdReq . prototype . messageType = "MSG_STM_UNIQUE_ID_REQ" ;
268
276
MsgStmUniqueIdReq . prototype . msg_type = 0x00E8 ;
269
277
MsgStmUniqueIdReq . prototype . constructor = MsgStmUniqueIdReq ;
270
278
MsgStmUniqueIdReq . prototype . parser = new Parser ( )
@@ -291,6 +299,7 @@ var MsgStmUniqueIdResp = function (sbp, fields) {
291
299
return this ;
292
300
} ;
293
301
MsgStmUniqueIdResp . prototype = Object . create ( SBP . prototype ) ;
302
+ MsgStmUniqueIdResp . prototype . messageType = "MSG_STM_UNIQUE_ID_RESP" ;
294
303
MsgStmUniqueIdResp . prototype . msg_type = 0x00E5 ;
295
304
MsgStmUniqueIdResp . prototype . constructor = MsgStmUniqueIdResp ;
296
305
MsgStmUniqueIdResp . prototype . parser = new Parser ( )
@@ -318,6 +327,7 @@ var MsgM25FlashWriteStatus = function (sbp, fields) {
318
327
return this ;
319
328
} ;
320
329
MsgM25FlashWriteStatus . prototype = Object . create ( SBP . prototype ) ;
330
+ MsgM25FlashWriteStatus . prototype . messageType = "MSG_M25_FLASH_WRITE_STATUS" ;
321
331
MsgM25FlashWriteStatus . prototype . msg_type = 0x00F3 ;
322
332
MsgM25FlashWriteStatus . prototype . constructor = MsgM25FlashWriteStatus ;
323
333
MsgM25FlashWriteStatus . prototype . parser = new Parser ( )
0 commit comments