metaonly interface xdc.platform.IPeripheral

Configuration-time representation of a peripheral

XDCspec summary sourced in xdc/platform/IPeripheral.xdc
metaonly interface IPeripheral {  ...
instance:  ...
XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
package xdc.platform;
 
metaonly interface IPeripheral {
module-wide constants & types
    typedef String StringArray// [];
module-wide functions
 
instance:
per-instance config parameters
}
typedef IPeripheral.IPeripheralArray
XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
typedef IPeripheral.Instance IPeripheralArray[];
typedef IPeripheral.StringArray
XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
typedef String StringArray[];
IPeripheral.addPeripheralsMap()  // module-wide

Create a map of all peripherals available on a device

XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
Void addPeripheralsMap(ICpuDataSheet.Instance cds);
ARGUMENTS
cds — an xdc.platform.ICpuDataSheet instance
DETAILS
The config parameter peripherals is by default undefined in an xdc.platform.ICpuDataSheet instance. This function gathers all instance configuration parameters that are of the type xdc.platform.IPeripheral into the map peripherals.
IPeripheral.getAll()  // module-wide

Find all peripherals of a certain type

XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
DETAILS
The type of the peripherals returned is defined by the type of the caller.
RETURNS
Returns an array of IPeripheral instances
IPeripheral.getRegisters()  // module-wide

Find all registers defined by the peripheral

XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
IPeripheral.StringArray getRegisters();
RETURNS
Returns an array of register names
config IPeripheral.name  // instance

Specific peripheral name given by the device

XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
config String name;
DETAILS
Devices can have more than one peripheral of the same type. In such cases, device data sheets give different names to the instances of a same peripheral. For example, the name for a timer module could be TimerA3, and a device that has two such timers can name them TA0 and TA1.
config IPeripheral.owner  // instance

String specifying the entity that manages the peripheral

XDCspec declarations sourced in xdc/platform/IPeripheral.xdc
config String owner;
generated on Tue, 24 Aug 2010 15:39:19 GMT