enum SD16_A.SD16AE0_t |
|
SD16_A Analog Enable Bit 0
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE0_t
const SD16_A.SD16AE0_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE0;
// External input enabled
enum SD16_A.SD16AE1_t |
|
SD16_A Analog Enable Bit 1
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE1_t
const SD16_A.SD16AE1_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE1;
// External input enabled
enum SD16_A.SD16AE2_t |
|
SD16_A Analog Enable Bit 2
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE2_t
const SD16_A.SD16AE2_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE2;
// External input enabled
enum SD16_A.SD16AE3_t |
|
SD16_A Analog Enable Bit 3
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE3_t
const SD16_A.SD16AE3_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE3;
// External input enabled
enum SD16_A.SD16AE4_t |
|
SD16_A Analog Enable Bit 4
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE4_t
const SD16_A.SD16AE4_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE4;
// External input enabled
enum SD16_A.SD16AE5_t |
|
SD16_A Analog Enable Bit 5
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE5_t
const SD16_A.SD16AE5_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE5;
// External input enabled
enum SD16_A.SD16AE6_t |
|
SD16_A Analog Enable Bit 6
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE6_t
const SD16_A.SD16AE6_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE6;
// External input enabled
enum SD16_A.SD16AE7_t |
|
SD16_A Analog Enable Bit 7
XDCscript usage |
meta-domain |
values of type SD16_A.SD16AE7_t
const SD16_A.SD16AE7_OFF;
// External input disabled. Negative inputs are internally connected to VSS
const SD16_A.SD16AE7;
// External input enabled
enum SD16_A.SD16BUF_t |
|
SD16BUFx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16BUF_t
const SD16_A.SD16BUF_0;
// Buffer disabled
const SD16_A.SD16BUF_1;
// Slow speed/current
const SD16_A.SD16BUF_2;
// Medium speed/current
const SD16_A.SD16BUF_3;
// High speed/current
enum SD16_A.SD16DF_t |
|
SD16DF Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16DF_t
const SD16_A.SD16DF_OFF;
// Offset binary
const SD16_A.SD16DF;
// 2's complement
enum SD16_A.SD16DIV_t |
|
SD16DIVx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16DIV_t
const SD16_A.SD16DIV_0;
// Divide by 1
const SD16_A.SD16DIV_1;
// Divide by 2
const SD16_A.SD16DIV_2;
// Divide by 4
const SD16_A.SD16DIV_3;
// Divide by 8
enum SD16_A.SD16GAIN_t |
|
SD16GAINx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16GAIN_t
const SD16_A.SD16GAIN_1;
// Multiply by 1
const SD16_A.SD16GAIN_2;
// Multiply by 2
const SD16_A.SD16GAIN_4;
// Multiply by 4
const SD16_A.SD16GAIN_8;
// Multiply by 8
const SD16_A.SD16GAIN_16;
// Multiply by 16
const SD16_A.SD16GAIN_32;
// Multiply by 32
enum SD16_A.SD16IE_t |
|
SD16IE Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16IE_t
const SD16_A.SD16IE_OFF;
// Disabled
const SD16_A.SD16IE;
// Enabled
enum SD16_A.SD16IFG_t |
|
SD16IFG Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16IFG_t
const SD16_A.SD16IFG_OFF;
// No interrupt pending
const SD16_A.SD16IFG;
// Interrupt pending
enum SD16_A.SD16INCH_t |
|
SD16INCHx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16INCH_t
const SD16_A.SD16INCH_0;
// A0
const SD16_A.SD16INCH_1;
// A1
const SD16_A.SD16INCH_2;
// A2
const SD16_A.SD16INCH_3;
// A3
const SD16_A.SD16INCH_4;
// A4
const SD16_A.SD16INCH_5;
// A5 - (AVcc - AVss)/11
const SD16_A.SD16INCH_6;
// A6 - Temperature Sensor
const SD16_A.SD16INCH_7;
// A7 - Short PGA offset measurement
enum SD16_A.SD16INTDLY_t |
|
SD16INTDLYx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16INTDLY_t
const SD16_A.SD16INTDLY_0;
// Fourth sample causes interrupt
const SD16_A.SD16INTDLY_1;
// Third sample causes interrupt
const SD16_A.SD16INTDLY_2;
// Second sample causes interrupt
const SD16_A.SD16INTDLY_3;
// First sample causes interrupt
enum SD16_A.SD16IV_SD16MEM0_t |
|
SD16_A SD16MEMx overflow
XDCscript usage |
meta-domain |
values of type SD16_A.SD16IV_SD16MEM0_t
const SD16_A.SD16IV_SD16MEM0_OFF;
// No Interrupt pending
const SD16_A.SD16IV_SD16MEM0;
// SD16MEM0 SD16IFG
enum SD16_A.SD16IV_SD16OVIFG_t |
|
SD16_A Interrupt
XDCscript usage |
meta-domain |
values of type SD16_A.SD16IV_SD16OVIFG_t
const SD16_A.SD16IV_SD16OVIFG_OFF;
// No Interrupt pending
const SD16_A.SD16IV_SD16OVIFG;
// SD16OVIFG
enum SD16_A.SD16LP_t |
|
SD16LP Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16LP_t
const SD16_A.SD16LP_OFF;
// Low-power mode is disabled
const SD16_A.SD16LP;
// Low-power mode is enabled. The maximum clock frequency for the SD16_A is reduced
enum SD16_A.SD16LSBACC_t |
|
SD16LSBACC Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16LSBACC_t
const SD16_A.SD16LSBACC_OFF;
// SD16MEMx contains the most significant 16-bits of the conversion
const SD16_A.SD16LSBACC;
// SD16MEMx contains the least significant 16-bits of the conversion
enum SD16_A.SD16LSBTOG_t |
|
SD16LSBTOG Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16LSBTOG_t
const SD16_A.SD16LSBTOG_OFF;
// SD16LSBACC does not toggle with each SD16MEM0 read
const SD16_A.SD16LSBTOG;
// SD16LSBACC toggles with each SD16MEM0 read
enum SD16_A.SD16OSR_t |
|
SD16OSRx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16OSR_t
const SD16_A.SD16OSR_256;
// SD16XOSR = 0
const SD16_A.SD16OSR_128;
// SD16XOSR = 0
const SD16_A.SD16OSR_64;
// SD16XOSR = 0
const SD16_A.SD16OSR_32;
// SD16XOSR = 0
const SD16_A.SD16OSR_512;
// SD16XOSR = 1
const SD16_A.SD16OSR_1024;
// SD16XOSR = 1
enum SD16_A.SD16OVIE_t |
|
SD16OVIE Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16OVIE_t
const SD16_A.SD16OVIE_OFF;
// Overflow interrupt disabled
const SD16_A.SD16OVIE;
// Overflow interrupt enabled
enum SD16_A.SD16OVIFG_t |
|
SD16OVIFG Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16OVIFG_t
const SD16_A.SD16OVIFG_OFF;
// No overflow interrupt pending
const SD16_A.SD16OVIFG;
// Overflow interrupt pending
enum SD16_A.SD16REFON_t |
|
SD16REFON Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16REFON_t
const SD16_A.SD16REFON_OFF;
// Reference off
const SD16_A.SD16REFON;
// Reference on
enum SD16_A.SD16SC_t |
|
SD16SC Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16SC_t
const SD16_A.SD16SC_OFF;
// No conversino start
const SD16_A.SD16SC;
// Start conversion
enum SD16_A.SD16SNGL_t |
|
SD16SNGL Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16SNGL_t
const SD16_A.SD16SNGL_OFF;
// Continuous conversion mode
const SD16_A.SD16SNGL;
// Single conversion mode
enum SD16_A.SD16SSEL_t |
|
SD16SSELx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16SSEL_t
const SD16_A.SD16SSEL_0;
// MCLK
const SD16_A.SD16SSEL_1;
// SMCLK
const SD16_A.SD16SSEL_2;
// ACLK
const SD16_A.SD16SSEL_3;
// External TACLK
enum SD16_A.SD16UNI_t |
|
SD16UNI Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16UNI_t
const SD16_A.SD16UNI_OFF;
// Bipolar mode
const SD16_A.SD16UNI;
// Unipolar mode
enum SD16_A.SD16VMIDON_t |
|
SD16VMIDON Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16VMIDON_t
const SD16_A.SD16VMIDON_OFF;
// Off
const SD16_A.SD16VMIDON;
// On
enum SD16_A.SD16XDIV_t |
|
SD16XDIVx Bits
XDCscript usage |
meta-domain |
values of type SD16_A.SD16XDIV_t
const SD16_A.SD16XDIV_0;
// Divide by 1
const SD16_A.SD16XDIV_1;
// Divide by 3
const SD16_A.SD16XDIV_2;
// Divide by 16
const SD16_A.SD16XDIV_3;
// Divide by 48
enum SD16_A.SD16XOSR_t |
|
SD16XOSR Bit
XDCscript usage |
meta-domain |
values of type SD16_A.SD16XOSR_t
const SD16_A.SD16XOSR_OFF;
// Extended oversampling ratio. This bit, along with the SD16OSRx bits,
select the oversampling ratio. See SD16OSRx bit description for settings
const SD16_A.SD16XOSR;
// Extended oversampling ratio. This bit, along with the SD16OSRx bits,
select the oversampling ratio. See SD16OSRx bit description for settings
struct SD16_A.ForceSetDefaultRegister_t |
|
Force Set Default Register
XDCscript usage |
meta-domain |
var obj = new SD16_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
struct SD16_A.SD16AE_t |
|
SD16_A Analog Input Enable Register
XDCscript usage |
meta-domain |
var obj = new SD16_A.SD16AE_t;
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
// SD16_A analog enable
0 External input disabled. Negative inputs are internally connected to
VSS.
1 External input enabled
struct SD16_A.SD16CCTL0_t |
|
SD16CCTL0 Register
XDCscript usage |
meta-domain |
var obj = new SD16_A.SD16CCTL0_t;
// Unipolar mode select
0 Bipolar mode
1 Unipolar mode
// Extended oversampling ratio. This bit, along with the SD16OSRx bits,
select the oversampling ratio. See SD16OSRx bit description for settings
// Single conversion mode select
0 Continuous conversion mode
1 Single conversion mode
// Oversampling ratio
When SD16XOSR = 0
00 256
01 128
10 64
11 32
When SD16XOSR = 1
00 512
01 1024
10 Reserved
11 Reserved
// LSB toggle. This bit, when set, causes SD16LSBACC to toggle each time
the SD16MEM0 register is read.
0 SD16LSBACC does not toggle with each SD16MEM0 read
1 SD16LSBACC toggles with each SD16MEM0 read
// LSB access. This bit allows access to the upper or lower 16-bits of the
SD16_A conversion result.
0 SD16MEMx contains the most significant 16-bits of the conversion.
1 SD16MEMx contains the least significant 16-bits of the conversion
// SD16_A overflow interrupt flag
0 No overflow interrupt pending
1 Overflow interrupt pending
// SD16_A data format
0 Offset binary
1 2's complement
// SD16_A interrupt enable
0 Disabled
1 Enabled
// SD16_A interrupt flag. SD16IFG is set when new conversion results are
available. SD16IFG is automatically reset when the corresponding
SD16MEMx register is read, or may be cleared with software.
0 No interrupt pending
1 Interrupt pending
// SD16_A start conversion
0 No conversion start
1 Start conversion
struct SD16_A.SD16CTL_t |
|
SD16CTL Register
XDCscript usage |
meta-domain |
var obj = new SD16_A.SD16CTL_t;
// SD16_A clock divider
000 Divide by 1
001 Divide by 3
010 Divide by 16
011 Divide by 48
1xx Reserved
// Low power mode. This bit selects a reduced speed, reduced power mode
0 Low-power mode is disabled
1 Low-power mode is enabled. The maximum clock frequency for the
SD16_A is reduced
// SD16_A clock divider
00 Divide by 1
01 Divide by 2
10 Divide by 4
11 Divide by 8
// SD16_A clock source select
00 MCLK
01 SMCLK
10 ACLK
External TACLK
// VMID buffer on
0 Off
1 On
// Reference generator on
0 Reference off
1 Reference on
// SD16_A overflow interrupt enable. The GIE bit must also be set to enable the
interrupt.
0 Overflow interrupt disabled
1 Overflow interrupt enabled
struct SD16_A.SD16INCTL0_t |
|
SD16INCTL0 Register
XDCscript usage |
meta-domain |
var obj = new SD16_A.SD16INCTL0_t;
// Interrupt delay generation after conversion start. These bits select the
delay for the first interrupt after conversion start.
00 Fourth sample causes interrupt
01 Third sample causes interrupt
10 Second sample causes interrupt
11 First sample causes interrupt
// SD16_A preamplifier gain
000 Multiply by 1
001 Multiply by 2
010 Multiply by 4
011 Multiply by 8
100 Multiply by 16
101 Multiply by 32
110 Reserved
111 Reserved
// SD16_A channel differential pair input
000 A0
001 A1
010 A2
011 A3
100 A4
101 A5-- (AVCC -- AVSS) / 11
110 A6 -- Temperature Sensor
111 A7 -- Short for PGA offset measurement
struct SD16_A.regIntVect_t |
|
Interrupt vector description
XDCscript usage |
meta-domain |
var obj = new SD16_A.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
SD16_A.getAll() // module-wide |
|
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
SD16_A.getRegisters() // module-wide |
|
Find all registers defined by the peripheral
XDCscript usage |
meta-domain |
SD16_A.getRegisters() returns String[]
RETURNS
Returns an array of register names
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
// Instance config-params object
// SD16AE Register
};
// SD16CCTL0 Register
};
// SD16CTL Register
};
// SD16INCTL0 Register
};
// SD16IV Register
// SD16MEM0 Register
// Determine if each Register needs to be forced set or not
{
register: "SD16CTL",
regForceSet: false
},
{
register: "SD16CCTL0",
regForceSet: false
},
{
register: "SD16INCTL0",
regForceSet: false
},
{
register: "SD16AE",
regForceSet: false
},
{
register: "SD16IV",
regForceSet: false
},
{
register: "SD16MEM0",
regForceSet: false
}
];
// ADC10 has 1 interrupt enable
params.name = String undefined;
// Specific peripheral name given by the device
params.owner = String undefined;
// String specifying the entity that manages the peripheral
config SD16_A.SD16AE // instance |
|
SD16AE Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
};
config SD16_A.SD16CCTL0 // instance |
|
SD16CCTL0 Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
};
config SD16_A.SD16CTL // instance |
|
SD16CTL Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
};
config SD16_A.SD16INCTL0 // instance |
|
SD16INCTL0 Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
};
config SD16_A.SD16IV // instance |
|
SD16IV Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
config SD16_A.SD16MEM0 // instance |
|
SD16MEM0 Register
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
config SD16_A.forceSetDefaultRegister // instance |
|
Determine if each Register needs to be forced set or not
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
{
register: "SD16CTL",
regForceSet: false
},
{
register: "SD16CCTL0",
regForceSet: false
},
{
register: "SD16INCTL0",
regForceSet: false
},
{
register: "SD16AE",
regForceSet: false
},
{
register: "SD16IV",
regForceSet: false
},
{
register: "SD16MEM0",
regForceSet: false
}
];
config SD16_A.interruptSource // instance |
|
ADC10 has 1 interrupt enable
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
config SD16_A.name // instance |
|
Specific peripheral name given by the device
XDCscript usage |
meta-domain |
var params = new SD16_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 SD16_A.owner // instance |
|
String specifying the entity that manages the peripheral
XDCscript usage |
meta-domain |
var params = new SD16_A.Params;
...
params.owner = String undefined;
Instance Creation |
|
XDCscript usage |
meta-domain |
var params =
new SD16_A.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
// Create an instance-object