示例#1
0
 public AISGen()
 {
     // Set defaults for AISGen object
       bootMode        = AisBootModes.NONE;
       busWidth        = 8;
       addrWidth       = 16;
       entryPoint      = 0xFFFFFFFF;
       crcIsEnabled    = false;
       aisCRCType      = AisCRCCheckType.NO_CRC;
       ROMFunc         = null;
       AISExtraFunc    = null;
       writer          = null;
       devAISStream    = null;
       sigStream       = null;
       SecureType      = AisSecureType.NONE;
 }
示例#2
0
 /// <summary>
 /// Secondary genAIS that calls the first
 /// </summary>
 /// <param name="mainObjectFileName">File name of .out file</param>
 /// <param name="bootmode">AISGen.AisBootModes Enum value containing desired boot mode</param>
 /// <returns>an Array of bytes to write to create an AIS file</returns>
 public static Byte[] GenAIS( AISGen devAISGen,
                          List<String> inputFileNames,
                          AisBootModes bootmode,
                          String iniData )
 {
     devAISGen.bootMode = bootmode;
       Console.WriteLine("Chosen bootmode is {0}.", devAISGen.bootMode.ToString());
       return GenAIS(devAISGen, inputFileNames, iniData);
 }
 /// <summary>
 /// Secondary genAIS thats calls the first
 /// </summary>
 /// <param name="inputFileNames">File name of .out file</param>
 /// <param name="bootmode">AISGen.AisBootModes Enum value containing desired boot mode</param>
 /// <returns>an Array of bytes to write to create an AIS file</returns>
 public static Byte[] SecureGenAIS(AISGen devAISGen,
                               List<String> inputFileNames,
                               AisBootModes bootmode,
                               String iniData)
 {
     return SecureGenAIS(devAISGen, inputFileNames, bootmode, new IniFile(iniData));
 }