metaonly interface xdc.platform.IPeripheral |
![](../../Arrow_left.png) |
![](../../Arrow_up.png) |
![](../../Arrow_right.png) |
Configuration-time representation of a peripheral
metaonly interface IPeripheral { ...
instance: ...
metaonly interface IPeripheral {
module-wide constants & types
module-wide functions
instance:
per-instance config parameters
}
typedef IPeripheral.IPeripheralArray |
![](../../Arrow_up.png) |
typedef IPeripheral.StringArray |
![](../../Arrow_up.png) |
typedef String StringArray[];
IPeripheral.getAll() // module-wide |
![](../../Arrow_up.png) |
Find all peripherals of a certain type
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 |
![](../../Arrow_up.png) |
Find all registers defined by the peripheral
RETURNS
Returns an array of register names
config IPeripheral.name // instance |
![](../../Arrow_up.png) |
Specific peripheral name given by the device
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 |
![](../../Arrow_up.png) |
String specifying the entity that manages the peripheral
generated on Thu, 16 Jun 2011 22:52:58 GMT