struct PinMux.ForceSetDefaultRegister_t |
 |
var obj = new PinMux.ForceSetDefaultRegister_t;
obj.register = String ...
obj.regForceSet = Bool ...
PinMux.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
PinMux.getRegisters() // module-wide |
 |
Find all registers defined by the peripheral
PinMux.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
 |
var params = new PinMux.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
params.p1dir = Bits8 0;
// Port 1 Direction Register
params.p1ie = Bits8 0;
// Port 1 Interrupt Enable
params.p1ies = Bits8 0;
// Port 1 Interrupt Edge Select
params.p1ifg = Bits8 0;
// Port 1 Interrupt Flag Register
params.p1out = Bits8 0;
// Port 1 Output Register
params.p1ren = Bits8 0;
// Port 1 Resistor Enable Register
params.p1sel0 = Bits8 0;
// Port 1 Port Select Register 0
params.p1sel1 = Bits8 0;
// Port 1 Port Select Register 1
params.p2dir = Bits8 0;
// Port 2 Direction Register
params.p2ie = Bits8 0;
// Port 2 Interrupt Enable
params.p2ies = Bits8 0;
// Port 2 Interrupt Edge Select
params.p2ifg = Bits8 0;
// Port 2 Interrupt Flag Register
params.p2out = Bits8 0;
// Port 2 Output Register
params.p2ren = Bits8 0;
// Port 2 Resistor Enable Register
params.p2sel0 = Bits8 0;
// Port 2 Port Select Register 0
params.p2sel1 = Bits8 0;
// Port 2 Port Select Register 1
params.p3dir = Bits8 0;
// Port 3 Direction Register
params.p3ie = Bits8 0;
// Port 3 Interrupt Enable
params.p3ies = Bits8 0;
// Port 3 Interrupt Edge Select
params.p3ifg = Bits8 0;
// Port 3 Interrupt Flag Register
params.p3out = Bits8 0;
// Port 3 Output Register
params.p3ren = Bits8 0;
// Port 3 Resistor Enable Register
params.p3sel0 = Bits8 0;
// Port 3 Port Select Register 0
params.p3sel1 = Bits8 0;
// Port 3 Port Select Register 1
params.p4dir = Bits8 0;
// Port 4 Direction Register
params.p4ie = Bits8 0;
// Port 4 Interrupt Enable
params.p4ies = Bits8 0;
// Port 4 Interrupt Edge Select
params.p4ifg = Bits8 0;
// Port 4 Interrupt Flag Register
params.p4out = Bits8 0;
// Port 4 Output Register
params.p4ren = Bits8 0;
// Port 4 Resistor Enable Register
params.p4sel0 = Bits8 0;
// Port 4 Port Select Register 0
params.p4sel1 = Bits8 0;
// Port 4 Port Select Register 1
params.pjdir = Bits8 0;
// Port J Direction Register
params.pjout = Bits8 0;
// Port J Output Register
params.pjren = Bits8 0;
// Port J Resistor Enable Register
params.pjsel0 = Bits8 0;
// Port J Port Select Register 0
params.pjsel1 = Bits8 0;
// Port J Port Select Register 1
config PinMux.Params.baseAddr // instance |
 |
Address of the peripheral's control register
var params = new PinMux.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 PinMux.Params.forceSetDefaultRegister // instance |
 |
var params = new PinMux.Params;
...
config PinMux.Params.name // instance |
 |
Specific peripheral name given by the device
var params = new PinMux.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 PinMux.Params.owner // instance |
 |
String specifying the entity that manages the peripheral
var params = new PinMux.Params;
...
params.owner = String undefined;
config PinMux.Params.p1dir // instance |
 |
Port 1 Direction Register
var params = new PinMux.Params;
...
params.p1dir = Bits8 0;
config PinMux.Params.p1ie // instance |
 |
Port 1 Interrupt Enable
var params = new PinMux.Params;
...
params.p1ie = Bits8 0;
config PinMux.Params.p1ies // instance |
 |
Port 1 Interrupt Edge Select
var params = new PinMux.Params;
...
params.p1ies = Bits8 0;
config PinMux.Params.p1ifg // instance |
 |
Port 1 Interrupt Flag Register
var params = new PinMux.Params;
...
params.p1ifg = Bits8 0;
config PinMux.Params.p1out // instance |
 |
Port 1 Output Register
var params = new PinMux.Params;
...
params.p1out = Bits8 0;
config PinMux.Params.p1ren // instance |
 |
Port 1 Resistor Enable Register
var params = new PinMux.Params;
...
params.p1ren = Bits8 0;
config PinMux.Params.p1sel0 // instance |
 |
Port 1 Port Select Register 0
var params = new PinMux.Params;
...
params.p1sel0 = Bits8 0;
config PinMux.Params.p1sel1 // instance |
 |
Port 1 Port Select Register 1
var params = new PinMux.Params;
...
params.p1sel1 = Bits8 0;
config PinMux.Params.p2dir // instance |
 |
Port 2 Direction Register
var params = new PinMux.Params;
...
params.p2dir = Bits8 0;
config PinMux.Params.p2ie // instance |
 |
Port 2 Interrupt Enable
var params = new PinMux.Params;
...
params.p2ie = Bits8 0;
config PinMux.Params.p2ies // instance |
 |
Port 2 Interrupt Edge Select
var params = new PinMux.Params;
...
params.p2ies = Bits8 0;
config PinMux.Params.p2ifg // instance |
 |
Port 2 Interrupt Flag Register
var params = new PinMux.Params;
...
params.p2ifg = Bits8 0;
config PinMux.Params.p2out // instance |
 |
Port 2 Output Register
var params = new PinMux.Params;
...
params.p2out = Bits8 0;
config PinMux.Params.p2ren // instance |
 |
Port 2 Resistor Enable Register
var params = new PinMux.Params;
...
params.p2ren = Bits8 0;
config PinMux.Params.p2sel0 // instance |
 |
Port 2 Port Select Register 0
var params = new PinMux.Params;
...
params.p2sel0 = Bits8 0;
config PinMux.Params.p2sel1 // instance |
 |
Port 2 Port Select Register 1
var params = new PinMux.Params;
...
params.p2sel1 = Bits8 0;
config PinMux.Params.p3dir // instance |
 |
Port 3 Direction Register
var params = new PinMux.Params;
...
params.p3dir = Bits8 0;
config PinMux.Params.p3ie // instance |
 |
Port 3 Interrupt Enable
var params = new PinMux.Params;
...
params.p3ie = Bits8 0;
config PinMux.Params.p3ies // instance |
 |
Port 3 Interrupt Edge Select
var params = new PinMux.Params;
...
params.p3ies = Bits8 0;
config PinMux.Params.p3ifg // instance |
 |
Port 3 Interrupt Flag Register
var params = new PinMux.Params;
...
params.p3ifg = Bits8 0;
config PinMux.Params.p3out // instance |
 |
Port 3 Output Register
var params = new PinMux.Params;
...
params.p3out = Bits8 0;
config PinMux.Params.p3ren // instance |
 |
Port 3 Resistor Enable Register
var params = new PinMux.Params;
...
params.p3ren = Bits8 0;
config PinMux.Params.p3sel0 // instance |
 |
Port 3 Port Select Register 0
var params = new PinMux.Params;
...
params.p3sel0 = Bits8 0;
config PinMux.Params.p3sel1 // instance |
 |
Port 3 Port Select Register 1
var params = new PinMux.Params;
...
params.p3sel1 = Bits8 0;
config PinMux.Params.p4dir // instance |
 |
Port 4 Direction Register
var params = new PinMux.Params;
...
params.p4dir = Bits8 0;
config PinMux.Params.p4ie // instance |
 |
Port 4 Interrupt Enable
var params = new PinMux.Params;
...
params.p4ie = Bits8 0;
config PinMux.Params.p4ies // instance |
 |
Port 4 Interrupt Edge Select
var params = new PinMux.Params;
...
params.p4ies = Bits8 0;
config PinMux.Params.p4ifg // instance |
 |
Port 4 Interrupt Flag Register
var params = new PinMux.Params;
...
params.p4ifg = Bits8 0;
config PinMux.Params.p4out // instance |
 |
Port 4 Output Register
var params = new PinMux.Params;
...
params.p4out = Bits8 0;
config PinMux.Params.p4ren // instance |
 |
Port 4 Resistor Enable Register
var params = new PinMux.Params;
...
params.p4ren = Bits8 0;
config PinMux.Params.p4sel0 // instance |
 |
Port 4 Port Select Register 0
var params = new PinMux.Params;
...
params.p4sel0 = Bits8 0;
config PinMux.Params.p4sel1 // instance |
 |
Port 4 Port Select Register 1
var params = new PinMux.Params;
...
params.p4sel1 = Bits8 0;
config PinMux.Params.pjdir // instance |
 |
Port J Direction Register
var params = new PinMux.Params;
...
params.pjdir = Bits8 0;
config PinMux.Params.pjout // instance |
 |
Port J Output Register
var params = new PinMux.Params;
...
params.pjout = Bits8 0;
config PinMux.Params.pjren // instance |
 |
Port J Resistor Enable Register
var params = new PinMux.Params;
...
params.pjren = Bits8 0;
config PinMux.Params.pjsel0 // instance |
 |
Port J Port Select Register 0
var params = new PinMux.Params;
...
params.pjsel0 = Bits8 0;
config PinMux.Params.pjsel1 // instance |
 |
Port J Port Select Register 1
var params = new PinMux.Params;
...
params.pjsel1 = Bits8 0;