2021-06-09 22:50:32 +01:00
|
|
|
<?php
|
|
|
|
|
namespace Bloom\BuildScripts\TargetDescriptionFiles;
|
|
|
|
|
|
2023-12-13 21:03:50 +00:00
|
|
|
require_once __DIR__ . "/PinoutType.php";
|
2021-06-09 22:50:32 +01:00
|
|
|
require_once __DIR__ . "/Pin.php";
|
|
|
|
|
|
|
|
|
|
class Pinout
|
|
|
|
|
{
|
|
|
|
|
public ?string $name = null;
|
|
|
|
|
public ?string $function = null;
|
2023-12-13 21:03:50 +00:00
|
|
|
public ?PinoutType $type = null;
|
2021-06-09 22:50:32 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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 = [];
|
|
|
|
|
}
|