Files
BloomPatched/build/scripts/TargetDescriptionFiles/Pinout.php

27 lines
677 B
PHP
Raw Normal View History

<?php
namespace Bloom\BuildScripts\TargetDescriptionFiles;
require_once __DIR__ . "/PinoutType.php";
require_once __DIR__ . "/Pin.php";
class Pinout
{
public ?string $name = null;
public ?string $function = null;
public ?PinoutType $type = null;
/**
* The name of the pinouts typically include the number of pins. We extract this if we can, so that we can
* validate against it.
*
* For example, for an SOIC pinout with 20 pins, the name of the pinout would be something like "SOIC20"
* or "SOIC_20".
*
* @var int|null
*/
public ?int $expectedPinCount = null;
/** @var Pin[] */
public array $pins = [];
}