metaonly module ti.catalog.msp430.peripherals.watchdog.WDT_A |
 |
 |
 |
MSP430 Watchdog Timer A
var WDT_A = xdc.useModule('ti.catalog.msp430.peripherals.watchdog.WDT_A');
module-wide constants & types
module-wide functions
per-instance config parameters
per-instance creation
struct WDT_A.ForceSetDefaultRegister_t |
 |
Force Set Default Register
var obj = new WDT_A.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
WDT_A.getAll() // module-wide |
 |
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
WDT_A.getRegisters() // module-wide |
 |
Find all registers defined by the peripheral
WDT_A.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
 |
var params = new WDT_A.Params;
// Instance config-params object
params.baseAddr = UInt undefined;
// Address of the peripheral's control register
params.name = String undefined;
// Specific peripheral name given by the device
params.owner = String undefined;
// String specifying the entity that manages the peripheral
config WDT_A.Params.baseAddr // instance |
 |
Address of the peripheral's control register
var params = new WDT_A.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 WDT_A.Params.name // instance |
 |
Specific peripheral name given by the device
var params = new WDT_A.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 WDT_A.Params.owner // instance |
 |
String specifying the entity that manages the peripheral
var params = new WDT_A.Params;
...
params.owner = String undefined;
Static Instance Creation |
 |
var params =
new WDT_A.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
// Create an instance-object
generated on Wed, 09 Aug 2017 16:40:52 GMT