@opalkelly/frontpanel-alloy-core
Version:
Core Library for OpalKelly FrontPanel Alloy
44 lines (36 loc) • 943 B
text/typescript
/**
* Copyright (c) 2024 Opal Kelly Incorporated
*
* This source code is licensed under the FrontPanel license.
* See the LICENSE file found in the root directory of this project.
*/
import { BitCount } from "./CoreDataTypes";
/**
* Type representing the address of an endpoint.
*/
export type EndpointAddress = number;
/**
* Represents the address of a bit within an endpoint.
*/
export type EndpointBitAddress = {
/**
* The address of the endpoint.
*/
epAddress: EndpointAddress;
/**
* The offset from the LSB of the endpoint, measured in bits.
*/
bitOffset: BitCount;
};
/**
* Type representing a Register address.
*/
export type RegisterAddress = number;
/**
* Type representing a Register value.
*/
export type RegisterValue = number;
/**
* Type representing the address of a Pipe endpoint.
*/
export type PipeAddress = EndpointAddress;