Beispiel #1
0
        public void Get_Bytes(HorizontalScrollType scrollType, PageAddress startPageAddress, FrameFrequencyType frameFrequencyType, PageAddress endPageAddress, byte[] expectedBytes)
        {
            HorizontalScrollSetup horizontalScrollSetup = new HorizontalScrollSetup(
                scrollType,
                startPageAddress,
                frameFrequencyType,
                endPageAddress);

            byte[] actualBytes = horizontalScrollSetup.GetBytes();
            Assert.Equal(expectedBytes, actualBytes);
        }
Beispiel #2
0
 /// <summary>
 /// This command consists of consecutive bytes to set up the horizontal scroll parameters
 /// and determines the scrolling start page, end page and scrolling speed.
 /// </summary>
 /// <param name="scrollType">Horizontal scroll type.</param>
 /// <param name="startPageAddress">Start page address with a range of 0-7.</param>
 /// <param name="frameFrequencyType">Frame frequency type with a range of 0-7.</param>
 /// <param name="endPageAddress">End page address with a range of 0-7.</param>
 public HorizontalScrollSetup(
     HorizontalScrollType scrollType,
     PageAddress startPageAddress,
     FrameFrequencyType frameFrequencyType,
     PageAddress endPageAddress)
 {
     ScrollType         = scrollType;
     StartPageAddress   = startPageAddress;
     FrameFrequencyType = frameFrequencyType;
     EndPageAddress     = endPageAddress;
 }