Example #1
0
            public static RoutineInformation Parse(ServiceMessageType msgType, SIMOS18_RoutineIdentifier routineIdentifier, byte[] options)
            {
                RoutineInformation ret = null;

                switch (routineIdentifier)
                {
                case SIMOS18_RoutineIdentifier.SIMOS18_1_ERASE_SEGMENT:
                    ret = new EraseSegmentRoutine(msgType, options);
                    break;

                case SIMOS18_RoutineIdentifier.SIMOS18_1_VALIDATE_SEGMENT:
                    ret = new ValidateSegmentRoutine(msgType, options);
                    break;

                case SIMOS18_RoutineIdentifier.SIMOS18_1_START_FLASH:
                    ret = new StartFlashRoutine();
                    break;

                default:
                    break;
                }

                return(ret);
            }
Example #2
0
 public RoutineControl_SIMOS18(ISO_TP.Message message)
     : base(message)
 {
     this.RoutineIdentifier = (SIMOS18_RoutineIdentifier)base.RoutineIdentifier;
     var a = RoutineInformation.Parse(this.MessageType, this.RoutineIdentifier, this.RoutineControlOptionRecord);
 }