metaonly module ti.catalog.msp430.peripherals.communication.EUSCI_B0

Enhanced Univerisal Serial Communication Interface B0

XDCscript usage meta-domain sourced in ti/catalog/msp430/peripherals/communication/EUSCI_B0.xdc
var EUSCI_B0 = xdc.useModule('ti.catalog.msp430.peripherals.communication.EUSCI_B0');
module-wide constants & types
        obj.register = String  ...
        obj.regForceSet = Bool  ...
 
        obj.registerName = String  ...
        obj.registerDescription = String  ...
        obj.isrToggleString = String  ...
        obj.priorityName = String  ...
        obj.interruptEnable = Bool  ...
        obj.interruptHandler = Bool  ...
        obj.priority = Int  ...
module-wide functions
per-instance config parameters
    var params = new EUSCI_B0.Params// Instance config-params object;
        params.baseAddr// Address of the peripheral's control register = UInt undefined;
        params.interruptSource// USI interrupt enables = EUSCI_B0.regIntVect_t[13] undefined;
        params.name// Specific peripheral name given by the device = String undefined;
        params.owner// String specifying the entity that manages the peripheral = String undefined;
per-instance creation
    var inst = EUSCI_B0.create// Create an instance-object(IClock.Instance clock, params);
 
 
struct EUSCI_B0.ForceSetDefaultRegister_t

Force Set Default Register

XDCscript usage meta-domain
var obj = new EUSCI_B0.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 EUSCI_B0.regIntVect_t

Interrupt vector description

XDCscript usage meta-domain
var obj = new EUSCI_B0.regIntVect_t;
 
    obj.registerName = String  ...
    obj.registerDescription = String  ...
    obj.isrToggleString = String  ...
    obj.priorityName = String  ...
    obj.interruptEnable = Bool  ...
    obj.interruptHandler = Bool  ...
    obj.priority = Int  ...
 
DETAILS
Type to describe a single interrupt vector pin and all its possible configurations.
SEE
 
EUSCI_B0.getAll()  // module-wide

Find all peripherals of a certain type

XDCscript usage meta-domain
EUSCI_B0.getAll() returns IPeripheral.Instance[]
 
DETAILS
The type of the peripherals returned is defined by the type of the caller.
RETURNS
Returns an array of IPeripheral instances
 
EUSCI_B0.getRegisters()  // module-wide

Find all registers defined by the peripheral

XDCscript usage meta-domain
EUSCI_B0.getRegisters() returns String[]
 
RETURNS
Returns an array of register names
Instance Config Parameters

XDCscript usage meta-domain
var params = new EUSCI_B0.Params;
// Instance config-params object
    params.baseAddr = UInt undefined;
    // Address of the peripheral's control register
    params.forceSetDefaultRegister = EUSCI_B0.ForceSetDefaultRegister_t[] [ ];
    // Determine if each Register needs to be forced set or not
    params.interruptSource = EUSCI_B0.regIntVect_t[13] undefined;
    // USI interrupt enables
    params.name = String undefined;
    // Specific peripheral name given by the device
    params.owner = String undefined;
    // String specifying the entity that manages the peripheral
 
config EUSCI_B0.baseAddr  // instance

Address of the peripheral's control register

XDCscript usage meta-domain
var params = new EUSCI_B0.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 EUSCI_B0.forceSetDefaultRegister  // instance

Determine if each Register needs to be forced set or not

XDCscript usage meta-domain
var params = new EUSCI_B0.Params;
  ...
const params.forceSetDefaultRegister = EUSCI_B0.ForceSetDefaultRegister_t[] [ ];
 
 
config EUSCI_B0.interruptSource  // instance

USI interrupt enables

XDCscript usage meta-domain
var params = new EUSCI_B0.Params;
  ...
params.interruptSource = EUSCI_B0.regIntVect_t[13] undefined;
 
 
config EUSCI_B0.name  // instance

Specific peripheral name given by the device

XDCscript usage meta-domain
var params = new EUSCI_B0.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 EUSCI_B0.owner  // instance

String specifying the entity that manages the peripheral

XDCscript usage meta-domain
var params = new EUSCI_B0.Params;
  ...
params.owner = String undefined;
 
Instance Creation

XDCscript usage meta-domain
var params = new EUSCI_B0.Params;
// Allocate instance config-params
params.config =   ...
// Assign individual configs
 
var inst = EUSCI_B0.create(IClock.Instance clock, params);
// Create an instance-object
generated on Fri, 14 Sep 2012 21:30:10 GMT