SLAAEB4 april 2023 MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G3105 , MSPM0G3106 , MSPM0G3107 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0L1105 , MSPM0L1106 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346
EEPROM_TypeB_transferDataItem is used to transfer the latest data items from one group to next group. Not all items will be transfer. Only the latest data item corresponding to each identifier is transferred.
The software flow is shown in Figure 3-6. First, it updates next group to be Receiving. Then it traverses the current group from back to front, checking if the data item already exists in the Receiving group. If not, the data item will be transferred. If it already exists, skip the data item. After transfer, the latest data item has been transferred to the Receiving group. Finally, Receiving group is updated to Active group. The group which is transferred is marked as Erasing, and gEEPROMTypeBEraseFlag is set. The process of transfer is shown in Figure 2-2.
By checking gEEPROMTypeBEraseFlag, users can call EEPROM_TypeB_eraseGroup to erase all Erasing group. Users can arrange erasure time points according to application needs.
The input of the function is GroupNum to choose which group to be transferred. The output of the function is the operation states. Besides, gEEPROMTypeBEraseFlag is updated to show if erasing is required.