mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-12-23 17:31:33 +00:00
224000c4c7
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
18 lines
545 B
C#
18 lines
545 B
C#
// <copyright file="PinLevelExtensions.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace EightBit
|
|
{
|
|
public static class PinLevelExtensions
|
|
{
|
|
public static bool Raised(this PinLevel line) => line == PinLevel.High;
|
|
|
|
public static bool Lowered(this PinLevel line) => line == PinLevel.Low;
|
|
|
|
public static void Raise(this ref PinLevel line) => line = PinLevel.High;
|
|
|
|
public static void Lower(this ref PinLevel line) => line = PinLevel.Low;
|
|
}
|
|
}
|