enum SR.CPUOFF_t |
|
XDCscript usage |
meta-domain |
values of type SR.CPUOFF_t
const SR.CPUOFF_OFF;
// CPU On
const SR.CPUOFF;
// CPU Off
enum SR.GIE_t |
|
XDCscript usage |
meta-domain |
values of type SR.GIE_t
const SR.GIE_OFF;
// General interrupt disable
const SR.GIE;
// General interrupt enable
enum SR.OSCOFF_t |
|
XDCscript usage |
meta-domain |
values of type SR.OSCOFF_t
const SR.OSCOFF_OFF;
// Oscillator On
const SR.OSCOFF;
// Oscillator Off
enum SR.SCG0_t |
|
XDCscript usage |
meta-domain |
values of type SR.SCG0_t
const SR.SCG0_OFF;
// Disable System clock generator 0
const SR.SCG0;
// Enable System clock generator 0
enum SR.SCG1_t |
|
XDCscript usage |
meta-domain |
values of type SR.SCG1_t
const SR.SCG1_OFF;
// Disable System clock generator 1
const SR.SCG1;
// Enable System clock generator 1
struct SR.ForceSetDefaultRegister_t |
|
Force Set Default Register
XDCscript usage |
meta-domain |
var obj = new SR.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 SR.SR_t |
|
XDCscript usage |
meta-domain |
var obj = new SR.SR_t;
// System clock generator 1
This bit, when set, turns off the SMCLK
// System clock generator 0
This bit, when set, turns off the DCO dc
generator, if DCOCLK is not used for MCLK
or SMCLK
// Oscillator Off
This bit, when set, turns off the LFXT1
crystal oscillator, when LFXT1CLK is not
use for MCLK or SMCLK
// CPU off
This bit, when set, turns off the CPU
// General interrupt enable
This bit, when set, enables maskable
interrupts. When reset, all maskable
interrupts are disabled
SR.getAll() // module-wide |
|
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
SR.getRegisters() // module-wide |
|
Find all registers defined by the peripheral
XDCscript usage |
meta-domain |
SR.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new SR.Params;
// Instance config-params object
// SR, Status Register
};
// Determine if each Register needs to be forced set or not
{
register: "SR",
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 SR.SR // instance |
|
SR, Status Register
XDCscript usage |
meta-domain |
var params = new SR.Params;
...
};
config SR.forceSetDefaultRegister // instance |
|
Determine if each Register needs to be forced set or not
XDCscript usage |
meta-domain |
var params = new SR.Params;
...
{
register: "SR",
regForceSet: false
}
];
config SR.name // instance |
|
Specific peripheral name given by the device
XDCscript usage |
meta-domain |
var params = new SR.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 SR.owner // instance |
|
String specifying the entity that manages the peripheral
XDCscript usage |
meta-domain |
var params = new SR.Params;
...
params.owner = String undefined;
SR.getCPUOFF() // instance |
|
Gets CPUOFF bit
XDCscript usage |
meta-domain |
inst.getCPUOFF() returns Bool
SEE
SR.getGIE() // instance |
|
Gets GIE bit
XDCscript usage |
meta-domain |
inst.getGIE() returns Bool
SEE
SR.getOSCOFF() // instance |
|
Gets OSCOFF bit
XDCscript usage |
meta-domain |
inst.getOSCOFF() returns Bool
SEE
SR.getSCG0() // instance |
|
Gets SCG0 bit
XDCscript usage |
meta-domain |
inst.getSCG0() returns Bool
SEE
SR.getSCG1() // instance |
|
Gets SCG1 bit
XDCscript usage |
meta-domain |
inst.getSCG1() returns Bool
SEE
SR.setCPUOFF() // instance |
|
Sets CPUOFF bit
XDCscript usage |
meta-domain |
inst.setCPUOFF(Bool set) returns Bool
SEE
SR.setGIE() // instance |
|
Sets GIE bit
XDCscript usage |
meta-domain |
inst.setGIE(Bool set) returns Bool
SEE
SR.setOSCOFF() // instance |
|
Sets OSCOFF bit
XDCscript usage |
meta-domain |
inst.setOSCOFF(Bool set) returns Bool
SEE
SR.setSCG0() // instance |
|
Sets SCG0 bit
XDCscript usage |
meta-domain |
inst.setSCG0(Bool set) returns Bool
SEE
SR.setSCG1() // instance |
|
Sets SCG1 bit
XDCscript usage |
meta-domain |
inst.setSCG1(Bool set) returns Bool
SEE