enum SVS.PORON_t |
![](../../../../../Arrow_up.png) |
PORON Bit
XDCscript usage |
meta-domain |
values of type SVS.PORON_t
const SVS.PORON_OFF;
// SVSFG does not cause a POR
const SVS.PORON;
// SVSFG causes a POR
enum SVS.SVSFG_t |
![](../../../../../Arrow_up.png) |
SVSFG Bit
XDCscript usage |
meta-domain |
values of type SVS.SVSFG_t
const SVS.SVSFG_OFF;
const SVS.SVSFG;
enum SVS.SVSON_t |
![](../../../../../Arrow_up.png) |
SVSON Bit
XDCscript usage |
meta-domain |
values of type SVS.SVSON_t
const SVS.SVSON_OFF;
const SVS.SVSON;
enum SVS.SVSOP_t |
![](../../../../../Arrow_up.png) |
SVSOP Bit
XDCscript usage |
meta-domain |
values of type SVS.SVSOP_t
const SVS.SVSOP_OFF;
const SVS.SVSOP;
enum SVS.VLD0_t |
![](../../../../../Arrow_up.png) |
VLD0 Bit
XDCscript usage |
meta-domain |
values of type SVS.VLD0_t
const SVS.VLD0_OFF;
const SVS.VLD0;
enum SVS.VLD1_t |
![](../../../../../Arrow_up.png) |
VLD1 Bit
XDCscript usage |
meta-domain |
values of type SVS.VLD1_t
const SVS.VLD1_OFF;
const SVS.VLD1;
enum SVS.VLD2_t |
![](../../../../../Arrow_up.png) |
VLD2 Bit
XDCscript usage |
meta-domain |
values of type SVS.VLD2_t
const SVS.VLD2_OFF;
const SVS.VLD2;
enum SVS.VLD3_t |
![](../../../../../Arrow_up.png) |
VLD3 Bit
XDCscript usage |
meta-domain |
values of type SVS.VLD3_t
const SVS.VLD3_OFF;
const SVS.VLD3;
struct SVS.ForceSetDefaultRegister_t |
![](../../../../../Arrow_up.png) |
Force Set Default Register
XDCscript usage |
meta-domain |
var obj = new SVS.ForceSetDefaultRegister_t;
obj.register = String ...
obj.regForceSet = Bool ...
DETAILS
Type to store if each register needs to be forced initialized
even if the register is in default state.
SEE
struct SVS.SVSCTL_t |
![](../../../../../Arrow_up.png) |
SVSCTL Register
XDCscript usage |
meta-domain |
var obj = new SVS.SVSCTL_t;
// Voltage level detect. These bits turn on the SVS and select
the nominal SVS threshold voltage level. See the device specific
data sheet for parameters.
0000 SVS is off
0001 1.9 V
0010 2.1 V
0011 2.2 V
0100 2.3 V
0101 2.4 V
0110 2.5 V
0111 2.65 V
1000 2.8 V
1001 2.9 V
1010 3.05
1011 3.2 V
1100 3.35 V
1101 3.5 V
1110 3.7 V
1111 Compares external input voltage SVSIN to 1.25 V
// Voltage level detect. These bits turn on the SVS and select
the nominal SVS threshold voltage level. See the device specific
data sheet for parameters.
0000 SVS is off
0001 1.9 V
0010 2.1 V
0011 2.2 V
0100 2.3 V
0101 2.4 V
0110 2.5 V
0111 2.65 V
1000 2.8 V
1001 2.9 V
1010 3.05
1011 3.2 V
1100 3.35 V
1101 3.5 V
1110 3.7 V
1111 Compares external input voltage SVSIN to 1.25 V
// Voltage level detect. These bits turn on the SVS and select
the nominal SVS threshold voltage level. See the device specific
data sheet for parameters.
0000 SVS is off
0001 1.9 V
0010 2.1 V
0011 2.2 V
0100 2.3 V
0101 2.4 V
0110 2.5 V
0111 2.65 V
1000 2.8 V
1001 2.9 V
1010 3.05
1011 3.2 V
1100 3.35 V
1101 3.5 V
1110 3.7 V
1111 Compares external input voltage SVSIN to 1.25 V
// Voltage level detect. These bits turn on the SVS and select
the nominal SVS threshold voltage level. See the device specific
data sheet for parameters.
0000 SVS is off
0001 1.9 V
0010 2.1 V
0011 2.2 V
0100 2.3 V
0101 2.4 V
0110 2.5 V
0111 2.65 V
1000 2.8 V
1001 2.9 V
1010 3.05
1011 3.2 V
1100 3.35 V
1101 3.5 V
1110 3.7 V
1111 Compares external input voltage SVSIN to 1.25 V
// POR on. This bit enables the SVSFG flag to
cause a POR device reset.
0 SVSFG does not cause a POR
1 SVSFG causes a POR
// SVS on. This bit reflects the status of SVS operation. This bit DOES NOT turn
on the SVS. The SVS is turned on by setting VLDx > 0.
0 SVS is Off
1 SVS is On
// SVS output. This bit reflects the output value of the SVS comparator.
0 SVS comparator output is low
1 SVS comparator output is high
// SVS flag. This bit indicates a low voltage condition. SVSFG remains set after
a low voltage condition until reset by software.
0 No low voltage condition occurred
1 A low condition is present or has occurred
SVS.getAll() // module-wide |
![](../../../../../Arrow_up.png) |
Find all peripherals of a certain type
XDCscript usage |
meta-domain |
DETAILS
The type of the peripherals returned is defined by the type of the
caller.
RETURNS
Returns an array of IPeripheral instances
SVS.getRegisters() // module-wide |
![](../../../../../Arrow_up.png) |
Find all registers defined by the peripheral
XDCscript usage |
meta-domain |
SVS.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new SVS.Params;
// Instance config-params object
// SVSCTL Register
};
// Determine if each Register needs to be forced set or not
{
register: "SVSCTL",
regForceSet: false
}
];
params.name = String undefined;
// Specific peripheral name given by the device
params.owner = String undefined;
// String specifying the entity that manages the peripheral
config SVS.SVSCTL // instance |
![](../../../../../Arrow_up.png) |
SVSCTL Register
XDCscript usage |
meta-domain |
var params = new SVS.Params;
...
};
config SVS.forceSetDefaultRegister // instance |
![](../../../../../Arrow_up.png) |
Determine if each Register needs to be forced set or not
XDCscript usage |
meta-domain |
var params = new SVS.Params;
...
{
register: "SVSCTL",
regForceSet: false
}
];
config SVS.name // instance |
![](../../../../../Arrow_up.png) |
Specific peripheral name given by the device
XDCscript usage |
meta-domain |
var params = new SVS.Params;
...
params.name = String undefined;
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 SVS.owner // instance |
![](../../../../../Arrow_up.png) |
String specifying the entity that manages the peripheral
XDCscript usage |
meta-domain |
var params = new SVS.Params;
...
params.owner = String undefined;
Instance Creation |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = SVS.create(params);
// Create an instance-object