Livt packages

Livt.IO

Version 1.8.1

Memory, UART, I2C, SPI, and Ethernet input/output components for Livt hardware designs.

Published files (126)

tests/ethernet/MiiTestLink.lvt

namespace Livt.IO.Tests

using Livt.IO

/**
 * Resolved test link; the fixture selects 10 or 100 Mb/s.
 */
component MiiTestLink : IEthernetLinkStatus
{
	// Test-selected link rate; readiness stays asserted.
	public ten: bool
	public disabled: in bool
	/**
	 * Publishes the resolved full-duplex test link.
	 */
	process Status[]()
	{
		ready = !disabled
		speed = EthernetSpeed.Mbps100

		if (ten) {
			speed = EthernetSpeed.Mbps10
		}
	}
}