enum WDTplus.WDTCNTCL_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTCNTCL_t
const WDTplus.WDTCNTCL_OFF;
// No action
const WDTplus.WDTCNTCL;
// WDTCNT = 0000h
enum WDTplus.WDTHOLD_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTHOLD_t
const WDTplus.WDTHOLD_OFF;
// Watchdog timer+ is not stopped
const WDTplus.WDTHOLD;
// Watchdog timer+ is stopped
enum WDTplus.WDTIS0_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTIS0_t
const WDTplus.WDTIS0_OFF;
// Watchdog clock source bit0 disabled
const WDTplus.WDTIS0;
// Watchdog clock source bit0 enabled
enum WDTplus.WDTIS1_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTIS1_t
const WDTplus.WDTIS1_OFF;
// Watchdog clock source bit1 disabled
const WDTplus.WDTIS1;
// Watchdog clock source bit1 enabled
enum WDTplus.WDTNMIES_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTNMIES_t
const WDTplus.WDTNMIES_OFF;
// NMI on rising edge
const WDTplus.WDTNMIES;
// NMI on falling edge
enum WDTplus.WDTNMI_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTNMI_t
const WDTplus.WDTNMI_OFF;
// Reset function
const WDTplus.WDTNMI;
// NMI function
enum WDTplus.WDTPW_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTPW_t
const WDTplus.WDTPW_OFF;
const WDTplus.WDTPW;
enum WDTplus.WDTSSEL_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTSSEL_t
const WDTplus.WDTSSEL_OFF;
// SMCLK
const WDTplus.WDTSSEL;
// ACLK
enum WDTplus.WDTTMSEL_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
values of type WDTplus.WDTTMSEL_t
const WDTplus.WDTTMSEL_OFF;
// Watchdog mode
const WDTplus.WDTTMSEL;
// Interval timer mode
struct WDTplus.ForceSetDefaultRegister_t |
![](../../../../../Arrow_up.png) |
Force Set Default Register
XDCscript usage |
meta-domain |
var obj = new WDTplus.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 WDTplus.WDTCTL_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var obj = new WDTplus.WDTCTL_t;
// WDT+ password
// Watchdog timer+ hold. This bit stops the watchdog timer+. Setting
WDTHOLD = 1 when the WDT+ is not in use conserves power.
0 Watchdog timer+ is not stopped
1 Watchdog timer+ is stopped
// Watchdog timer+ NMI edge select. This bit selects the interrupt edge for the
NMI interrupt when WDTNMI = 1. Modifying this bit can trigger an NMI. Modify
this bit when WDTIE = 0 to avoid triggering an accidental NMI.
0 NMI on rising edge
1 NMI on falling edge
// Watchdog timer+ NMI select. This bit selects the function for the RST/NMI pin.
0 Reset function
1 NMI function
// Watchdog timer+ mode select
0 Watchdog mode
1 Interval timer mode
// Watchdog timer+ counter clear. Setting WDTCNTCL = 1 clears the count
value to 0000h. WDTCNTCL is automatically reset.
0 No action
1 WDTCNT = 0000h
// Watchdog timer+ clock source select
0 SMCLK
1 ACLK
// Watchdog timer+ interval select. These bits select the watchdog timer+
interval to set the WDTIFG flag and/or generate a PUC.
00 Watchdog clock source /32768
01 Watchdog clock source /8192
10 Watchdog clock source /512
11 Watchdog clock source /64
// Watchdog timer+ interval select. These bits select the watchdog timer+
interval to set the WDTIFG flag and/or generate a PUC.
00 Watchdog clock source /32768
01 Watchdog clock source /8192
10 Watchdog clock source /512
11 Watchdog clock source /64
WDTplus.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
WDTplus.getRegisters() // module-wide |
![](../../../../../Arrow_up.png) |
Find all registers defined by the peripheral
XDCscript usage |
meta-domain |
WDTplus.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new WDTplus.Params;
// Instance config-params object
// WDTCTL, Watchdog Timer+ Register
};
params.baseAddr = UInt undefined;
// Address of the peripheral's control register
// Determine if each Register needs to be forced set or not
{
register: "WDTCTL",
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 WDTplus.WDTCTL // instance |
![](../../../../../Arrow_up.png) |
WDTCTL, Watchdog Timer+ Register
XDCscript usage |
meta-domain |
var params = new WDTplus.Params;
...
};
config WDTplus.baseAddr // instance |
![](../../../../../Arrow_up.png) |
Address of the peripheral's control register
XDCscript usage |
meta-domain |
var params = new WDTplus.Params;
...
params.baseAddr = UInt undefined;
DETAILS
A peripheral's registers are commonly accessed through a structure
that defines the offsets of a particular register from the lowest
address mapped to a peripheral. That lowest address is specified by
this parameter.
config WDTplus.forceSetDefaultRegister // instance |
![](../../../../../Arrow_up.png) |
Determine if each Register needs to be forced set or not
XDCscript usage |
meta-domain |
var params = new WDTplus.Params;
...
{
register: "WDTCTL",
regForceSet: false
}
];
config WDTplus.name // instance |
![](../../../../../Arrow_up.png) |
Specific peripheral name given by the device
XDCscript usage |
meta-domain |
var params = new WDTplus.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 WDTplus.owner // instance |
![](../../../../../Arrow_up.png) |
String specifying the entity that manages the peripheral
XDCscript usage |
meta-domain |
var params = new WDTplus.Params;
...
params.owner = String undefined;
Instance Creation |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params =
new WDTplus.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
// Create an instance-object