Example #1
0
        /// <summary>
        /// Sends a chunk of firmware data to Blaze
        /// </summary>
        /// <param name="blaze"></param>
        /// <param name="index"></param>
        /// <param name="chunk"></param>
        /// <returns></returns>
        public static bool WriteFirmwareChunk(Blaze blaze, ushort index, List <byte> chunk)
        {
            ByteList data = new ByteList();

            data.AddUInt16(index);
            data.AddRange(chunk);

            return(blaze.Write(BlazeCommand.WriteFirmwareChunk, data.ToArray()));
        }
Example #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="blaze"></param>
        /// <returns></returns>
        public static bool TestCommand(Blaze blaze)
        {
            // Send some dummy bytes to Blaze for testing
            ByteList data = new ByteList();

            data.Add(0x11);
            data.Add(0x22);
            data.Add(0x33);
            data.Add(0x44);

            return(blaze.Write(BlazeCommand.TestCommand, data.ToArray()));
        }
Example #3
0
 public void Write(ByteList buffer)
 {
     Write(buffer.ToArray());
 }