enum DAC12.DAC12AMP_t |
![](../../../../../Arrow_up.png) |
DAC12AMPx Bits
XDCscript usage |
meta-domain |
values of type DAC12.DAC12AMP_t
const DAC12.DAC12AMP_0;
const DAC12.DAC12AMP_1;
const DAC12.DAC12AMP_2;
const DAC12.DAC12AMP_3;
const DAC12.DAC12AMP_4;
const DAC12.DAC12AMP_5;
const DAC12.DAC12AMP_6;
const DAC12.DAC12AMP_7;
enum DAC12.DAC12CALON_t |
![](../../../../../Arrow_up.png) |
DAC12CALON Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12CALON_t
const DAC12.DAC12CALON_OFF;
const DAC12.DAC12CALON;
enum DAC12.DAC12DF_t |
![](../../../../../Arrow_up.png) |
DAC12DF Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12DF_t
const DAC12.DAC12DF_OFF;
const DAC12.DAC12DF;
enum DAC12.DAC12ENC_t |
![](../../../../../Arrow_up.png) |
DAC12ENC Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12ENC_t
const DAC12.DAC12ENC_OFF;
const DAC12.DAC12ENC;
enum DAC12.DAC12GRP_t |
![](../../../../../Arrow_up.png) |
DAC12GRP Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12GRP_t
const DAC12.DAC12GRP_OFF;
const DAC12.DAC12GRP;
enum DAC12.DAC12IE_t |
![](../../../../../Arrow_up.png) |
DAC12IE Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12IE_t
const DAC12.DAC12IE_OFF;
const DAC12.DAC12IE;
enum DAC12.DAC12IFG_t |
![](../../../../../Arrow_up.png) |
DAC12IFG Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12IFG_t
const DAC12.DAC12IFG_OFF;
const DAC12.DAC12IFG;
enum DAC12.DAC12IR_t |
![](../../../../../Arrow_up.png) |
DAC12IR Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12IR_t
const DAC12.DAC12IR_OFF;
const DAC12.DAC12IR;
enum DAC12.DAC12LSEL_t |
![](../../../../../Arrow_up.png) |
DAC12LSELx Bits
XDCscript usage |
meta-domain |
values of type DAC12.DAC12LSEL_t
const DAC12.DAC12LSEL_0;
const DAC12.DAC12LSEL_1;
const DAC12.DAC12LSEL_2;
const DAC12.DAC12LSEL_3;
enum DAC12.DAC12OPS_t |
![](../../../../../Arrow_up.png) |
DAC12OPS Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12OPS_t
const DAC12.DAC12OPS_OFF;
const DAC12.DAC12OPS;
enum DAC12.DAC12RES_t |
![](../../../../../Arrow_up.png) |
DAC12RES Bit
XDCscript usage |
meta-domain |
values of type DAC12.DAC12RES_t
const DAC12.DAC12RES_OFF;
const DAC12.DAC12RES;
enum DAC12.DAC12SREF_t |
![](../../../../../Arrow_up.png) |
DAC12SREFx Bits
XDCscript usage |
meta-domain |
values of type DAC12.DAC12SREF_t
const DAC12.DAC12SREF_0;
const DAC12.DAC12SREF_1;
const DAC12.DAC12SREF_2;
const DAC12.DAC12SREF_3;
struct DAC12.DAC12_xCTL_t |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var obj = new DAC12.DAC12_xCTL_t;
// DAC12 output select
0 DAC12_0 output on P6.6, DAC12_1 output on P6.7
1 DAC12_0 output on VeREF+, DAC12_1 output on P6.5
// DAC12 select reference voltage
00 VREF+
01 VREF+
10 VeREF+
11 VeREF+
// DAC12 resolution select
0 12-bit resolution
1 8-bit resolution
// DAC12 load select. Selects the load trigger for the DAC12 latch. DAC12ENC
must be set for the DAC to update, except when DAC12LSELx = 0.
00 DAC12 latch loads when DAC12_xDATwritten (DAC12ENCis ignored)
01 DAC12 latch loads when DAC12_xDAT written, or, when grouped,
when all DAC12_xDAT registers in the group have been written.
10 Rising edge of Timer_A.OUT1 (TA1)
11 Rising edge of Timer_B.OUT2 (TB2)
// DAC12 calibration on. This bit initiates the DAC12 offset calibration sequence
and is automatically reset when the calibration completes.
0 Calibration is not active
1 Initiate calibration/calibration in progress
// DAC12 input range. This bit sets the reference input and voltage output range.
0 DAC12 full-scale output = 3x reference voltage
1 DAC12 full-scale output = 1x reference voltage
// DAC12 amplifier setting. These bits select settling time vs current
consumption for the DAC12 input and output amplifiers.
DAC12AMPx Input Buffer Output Buffer
000 Off DAC12 off, output high Z
001 Off DAC12 off, output 0 V
010 Low speed/current Low speed/current
011 Low speed/current Medium speed/current
100 Low speed/current High speed/current
101 Medium speed/current Medium speed/current
110 Medium speed/current High speed/current
111 High speed/current High speed/current
// DAC12 data format
0 Straight binary
1 2s complement
// DAC12 interrupt enable
0 Disabled
1 Enabled
// DAC12 Interrupt flag
0 No interrupt pending
1 Interrupt pending
// DAC12 enable conversion. This bit enables the DAC12 module when
DAC12LSELx > 0. when DAC12LSELx = 0, DAC12ENC is ignored.
0 DAC12 disabled
1 DAC12 enabled
// DAC12 group. Groups DAC12_x with the next higher DAC12_x.
0 Not grouped
1 Grouped
struct DAC12.ForceSetDefaultRegister_t |
![](../../../../../Arrow_up.png) |
Force Set Default Register
XDCscript usage |
meta-domain |
var obj = new DAC12.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
DAC12.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
DAC12.getRegisters() // module-wide |
![](../../../../../Arrow_up.png) |
Find all registers defined by the peripheral
XDCscript usage |
meta-domain |
DAC12.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
// Instance config-params object
// DAC12_0CTL Register
};
params.DAC12_0DAT = Bits16 0;
// DAC12_0DAT Register
// DAC12_1CTL Register
};
params.DAC12_1DAT = Bits16 0;
// DAC12_1DAT Register
// Determine if each Register needs to be forced set or not
{
register: "DAC12_0CTL",
regForceSet: false
},
{
register: "DAC12_1CTL",
regForceSet: false
},
{
register: "DAC12_0DAT",
regForceSet: false
},
{
register: "DAC12_1DAT",
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 DAC12.DAC12_0CTL // instance |
![](../../../../../Arrow_up.png) |
DAC12_0CTL Register
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
};
config DAC12.DAC12_0DAT // instance |
![](../../../../../Arrow_up.png) |
DAC12_0DAT Register
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
params.DAC12_0DAT = Bits16 0;
config DAC12.DAC12_1CTL // instance |
![](../../../../../Arrow_up.png) |
DAC12_1CTL Register
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
};
config DAC12.DAC12_1DAT // instance |
![](../../../../../Arrow_up.png) |
DAC12_1DAT Register
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
params.DAC12_1DAT = Bits16 0;
config DAC12.forceSetDefaultRegister // instance |
![](../../../../../Arrow_up.png) |
Determine if each Register needs to be forced set or not
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
{
register: "DAC12_0CTL",
regForceSet: false
},
{
register: "DAC12_1CTL",
regForceSet: false
},
{
register: "DAC12_0DAT",
regForceSet: false
},
{
register: "DAC12_1DAT",
regForceSet: false
}
];
config DAC12.name // instance |
![](../../../../../Arrow_up.png) |
Specific peripheral name given by the device
XDCscript usage |
meta-domain |
var params = new DAC12.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 DAC12.owner // instance |
![](../../../../../Arrow_up.png) |
String specifying the entity that manages the peripheral
XDCscript usage |
meta-domain |
var params = new DAC12.Params;
...
params.owner = String undefined;
Instance Creation |
![](../../../../../Arrow_up.png) |
XDCscript usage |
meta-domain |
var params =
new DAC12.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = DAC12.create(params);
// Create an instance-object