metaonly module ti.catalog.msp430.peripherals.adc.SD16_A

MSP430F2xx Family SD16_A Module

XDCscript usage meta-domain sourced in ti/catalog/msp430/peripherals/adc/SD16_A.xdc
var SD16_A = xdc.useModule('ti.catalog.msp430.peripherals.adc.SD16_A');
module-wide constants & types
 
 
 
 
 
 
 
 
    values of type SD16_A.SD16BUF_t// SD16BUFx Bits
        const SD16_A.SD16BUF_0// Buffer disabled;
 
    values of type SD16_A.SD16DF_t// SD16DF Bit
        const SD16_A.SD16DF_OFF// Offset binary;
        const SD16_A.SD16DF// 2's complement;
 
    values of type SD16_A.SD16DIV_t// SD16DIVx Bits
        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;
 
    values of type SD16_A.SD16GAIN_t// SD16GAINx Bits
        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;
 
    values of type SD16_A.SD16IE_t// SD16IE Bit
        const SD16_A.SD16IE_OFF// Disabled;
        const SD16_A.SD16IE// Enabled;
 
    values of type SD16_A.SD16IFG_t// SD16IFG Bit
        const SD16_A.SD16IFG// Interrupt pending;
 
    values of type SD16_A.SD16INCH_t// SD16INCHx Bits
        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.SD16IV_SD16OVIFG// SD16OVIFG;
 
    values of type SD16_A.SD16LP_t// SD16LP Bit
 
    values of type SD16_A.SD16LSBACC_t// SD16LSBACC Bit
 
    values of type SD16_A.SD16LSBTOG_t// SD16LSBTOG Bit
 
    values of type SD16_A.SD16OSR_t// SD16OSRx Bits
        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;
 
    values of type SD16_A.SD16OVIE_t// SD16OVIE Bit
 
    values of type SD16_A.SD16OVIFG_t// SD16OVIFG Bit
 
    values of type SD16_A.SD16REFON_t// SD16REFON Bit
        const SD16_A.SD16REFON_OFF// Reference off;
        const SD16_A.SD16REFON// Reference on;
 
    values of type SD16_A.SD16SC_t// SD16SC Bit
        const SD16_A.SD16SC// Start conversion;
 
    values of type SD16_A.SD16SNGL_t// SD16SNGL Bit
 
    values of type SD16_A.SD16SSEL_t// SD16SSELx Bits
        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;
 
    values of type SD16_A.SD16UNI_t// SD16UNI Bit
        const SD16_A.SD16UNI_OFF// Bipolar mode;
        const SD16_A.SD16UNI// Unipolar mode;
 
    values of type SD16_A.SD16VMIDON_t// SD16VMIDON Bit
        const SD16_A.SD16VMIDON_OFF// Off;
        const SD16_A.SD16VMIDON// On;
 
    values of type SD16_A.SD16XDIV_t// SD16XDIVx Bits
        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;
 
    values of type SD16_A.SD16XOSR_t// SD16XOSR Bit
 
        obj.register = String  ...
        obj.regForceSet = Bool  ...
 
 
 
    var obj = new SD16_A.SD16CTL_t// SD16CTL Register;
 
module-wide functions
per-instance config parameters
    var params = new SD16_A.Params// Instance config-params object;
        params.SD16AE// SD16AE Register = SD16_A.SD16AE_t {
            SD16AE0: SD16_A.SD16AE0_OFF,
            SD16AE1: SD16_A.SD16AE1_OFF,
            SD16AE2: SD16_A.SD16AE2_OFF,
            SD16AE3: SD16_A.SD16AE3_OFF,
            SD16AE4: SD16_A.SD16AE4_OFF,
            SD16AE5: SD16_A.SD16AE5_OFF,
            SD16AE6: SD16_A.SD16AE6_OFF,
            SD16AE7: SD16_A.SD16AE7_OFF
        };
            SD16UNI: SD16_A.SD16UNI_OFF,
            SD16XOSR: SD16_A.SD16XOSR_OFF,
            SD16SNGL: SD16_A.SD16SNGL_OFF,
            SD16OSR: SD16_A.SD16OSR_256,
            SD16LSBTOG: SD16_A.SD16LSBTOG_OFF,
            SD16LSBACC: SD16_A.SD16LSBACC_OFF,
            SD16OVIFG: SD16_A.SD16OVIFG_OFF,
            SD16DF: SD16_A.SD16DF_OFF,
            SD16IE: SD16_A.SD16IE_OFF,
            SD16IFG: SD16_A.SD16IFG_OFF,
            SD16SC: SD16_A.SD16SC_OFF
        };
        params.SD16CTL// SD16CTL Register = SD16_A.SD16CTL_t {
            SD16XDIV: SD16_A.SD16XDIV_0,
            SD16LP: SD16_A.SD16LP_OFF,
            SD16DIV: SD16_A.SD16DIV_0,
            SD16SSEL: SD16_A.SD16SSEL_0,
            SD16VMIDON: SD16_A.SD16VMIDON_OFF,
            SD16REFON: SD16_A.SD16REFON_OFF,
            SD16OVIE: SD16_A.SD16OVIE_OFF
        };
            SD16INTDLY: SD16_A.SD16INTDLY_0,
            SD16GAIN: SD16_A.SD16GAIN_1,
            SD16INCH: SD16_A.SD16INCH_0
        };
        params.SD16IV// SD16IV Register = Bits16 SD16_A.SD16IV_SD16OVIFG_OFF;
            {
                register: "SD16CTL",
                regForceSet: false
            },
            {
                register: "SD16CCTL0",
                regForceSet: false
            },
            {
                register: "SD16INCTL0",
                regForceSet: false
            },
            {
                register: "SD16AE",
                regForceSet: false
            },
            {
                register: "SD16IV",
                regForceSet: false
            },
            {
                register: "SD16MEM0",
                regForceSet: false
            }
        ];
        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 = SD16_A.create// Create an instance-object(IClock.Instance clock, params);
 
 
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;
 
    obj.SD16AE0 = SD16_A.SD16AE0_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE1 = SD16_A.SD16AE1_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE2 = SD16_A.SD16AE2_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE3 = SD16_A.SD16AE3_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE4 = SD16_A.SD16AE4_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE5 = SD16_A.SD16AE5_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE6 = SD16_A.SD16AE6_t  ...
    // SD16_A analog enable 0 External input disabled. Negative inputs are internally connected to VSS. 1 External input enabled
    obj.SD16AE7 = SD16_A.SD16AE7_t  ...
    // 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;
 
    obj.SD16UNI = SD16_A.SD16UNI_t  ...
    // Unipolar mode select 0 Bipolar mode 1 Unipolar mode
    obj.SD16XOSR = SD16_A.SD16XOSR_t  ...
    // Extended oversampling ratio. This bit, along with the SD16OSRx bits, select the oversampling ratio. See SD16OSRx bit description for settings
    obj.SD16SNGL = SD16_A.SD16SNGL_t  ...
    // Single conversion mode select 0 Continuous conversion mode 1 Single conversion mode
    obj.SD16OSR = SD16_A.SD16OSR_t  ...
    // Oversampling ratio When SD16XOSR = 0 00 256 01 128 10 64 11 32 When SD16XOSR = 1 00 512 01 1024 10 Reserved 11 Reserved
    obj.SD16LSBTOG = SD16_A.SD16LSBTOG_t  ...
    // 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
    obj.SD16LSBACC = SD16_A.SD16LSBACC_t  ...
    // 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
    obj.SD16OVIFG = SD16_A.SD16OVIFG_t  ...
    // SD16_A overflow interrupt flag 0 No overflow interrupt pending 1 Overflow interrupt pending
    obj.SD16DF = SD16_A.SD16DF_t  ...
    // SD16_A data format 0 Offset binary 1 2's complement
    obj.SD16IE = SD16_A.SD16IE_t  ...
    // SD16_A interrupt enable 0 Disabled 1 Enabled
    obj.SD16IFG = SD16_A.SD16IFG_t  ...
    // 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
    obj.SD16SC = SD16_A.SD16SC_t  ...
    // 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;
 
    obj.SD16XDIV = SD16_A.SD16XDIV_t  ...
    // SD16_A clock divider 000 Divide by 1 001 Divide by 3 010 Divide by 16 011 Divide by 48 1xx Reserved
    obj.SD16LP = SD16_A.SD16LP_t  ...
    // 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
    obj.SD16DIV = SD16_A.SD16DIV_t  ...
    // SD16_A clock divider 00 Divide by 1 01 Divide by 2 10 Divide by 4 11 Divide by 8
    obj.SD16SSEL = SD16_A.SD16SSEL_t  ...
    // SD16_A clock source select 00 MCLK 01 SMCLK 10 ACLK External TACLK
    obj.SD16VMIDON = SD16_A.SD16VMIDON_t  ...
    // VMID buffer on 0 Off 1 On
    obj.SD16REFON = SD16_A.SD16REFON_t  ...
    // Reference generator on 0 Reference off 1 Reference on
    obj.SD16OVIE = SD16_A.SD16OVIE_t  ...
    // 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;
 
    obj.SD16INTDLY = SD16_A.SD16INTDLY_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
    obj.SD16GAIN = SD16_A.SD16GAIN_t  ...
    // 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
    obj.SD16INCH = SD16_A.SD16INCH_t  ...
    // 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
 
 
SD16_A.getAll()  // module-wide

Find all peripherals of a certain type

XDCscript usage meta-domain
SD16_A.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
 
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
    params.SD16AE = SD16_A.SD16AE_t {
    // SD16AE Register
        SD16AE0: SD16_A.SD16AE0_OFF,
        SD16AE1: SD16_A.SD16AE1_OFF,
        SD16AE2: SD16_A.SD16AE2_OFF,
        SD16AE3: SD16_A.SD16AE3_OFF,
        SD16AE4: SD16_A.SD16AE4_OFF,
        SD16AE5: SD16_A.SD16AE5_OFF,
        SD16AE6: SD16_A.SD16AE6_OFF,
        SD16AE7: SD16_A.SD16AE7_OFF
    };
    params.SD16CCTL0 = SD16_A.SD16CCTL0_t {
    // SD16CCTL0 Register
        SD16UNI: SD16_A.SD16UNI_OFF,
        SD16XOSR: SD16_A.SD16XOSR_OFF,
        SD16SNGL: SD16_A.SD16SNGL_OFF,
        SD16OSR: SD16_A.SD16OSR_256,
        SD16LSBTOG: SD16_A.SD16LSBTOG_OFF,
        SD16LSBACC: SD16_A.SD16LSBACC_OFF,
        SD16OVIFG: SD16_A.SD16OVIFG_OFF,
        SD16DF: SD16_A.SD16DF_OFF,
        SD16IE: SD16_A.SD16IE_OFF,
        SD16IFG: SD16_A.SD16IFG_OFF,
        SD16SC: SD16_A.SD16SC_OFF
    };
    params.SD16CTL = SD16_A.SD16CTL_t {
    // SD16CTL Register
        SD16XDIV: SD16_A.SD16XDIV_0,
        SD16LP: SD16_A.SD16LP_OFF,
        SD16DIV: SD16_A.SD16DIV_0,
        SD16SSEL: SD16_A.SD16SSEL_0,
        SD16VMIDON: SD16_A.SD16VMIDON_OFF,
        SD16REFON: SD16_A.SD16REFON_OFF,
        SD16OVIE: SD16_A.SD16OVIE_OFF
    };
    params.SD16INCTL0 = SD16_A.SD16INCTL0_t {
    // SD16INCTL0 Register
        SD16INTDLY: SD16_A.SD16INTDLY_0,
        SD16GAIN: SD16_A.SD16GAIN_1,
        SD16INCH: SD16_A.SD16INCH_0
    };
    params.SD16IV = Bits16 SD16_A.SD16IV_SD16OVIFG_OFF;
    // SD16IV Register
    params.SD16MEM0 = Bits16 SD16_A.SD16IV_SD16MEM0_OFF;
    // SD16MEM0 Register
    params.forceSetDefaultRegister = SD16_A.ForceSetDefaultRegister_t[] [
    // 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
        }
    ];
    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;
  ...
params.SD16AE = SD16_A.SD16AE_t {
    SD16AE0: SD16_A.SD16AE0_OFF,
    SD16AE1: SD16_A.SD16AE1_OFF,
    SD16AE2: SD16_A.SD16AE2_OFF,
    SD16AE3: SD16_A.SD16AE3_OFF,
    SD16AE4: SD16_A.SD16AE4_OFF,
    SD16AE5: SD16_A.SD16AE5_OFF,
    SD16AE6: SD16_A.SD16AE6_OFF,
    SD16AE7: SD16_A.SD16AE7_OFF
};
 
 
config SD16_A.SD16CCTL0  // instance

SD16CCTL0 Register

XDCscript usage meta-domain
var params = new SD16_A.Params;
  ...
params.SD16CCTL0 = SD16_A.SD16CCTL0_t {
    SD16UNI: SD16_A.SD16UNI_OFF,
    SD16XOSR: SD16_A.SD16XOSR_OFF,
    SD16SNGL: SD16_A.SD16SNGL_OFF,
    SD16OSR: SD16_A.SD16OSR_256,
    SD16LSBTOG: SD16_A.SD16LSBTOG_OFF,
    SD16LSBACC: SD16_A.SD16LSBACC_OFF,
    SD16OVIFG: SD16_A.SD16OVIFG_OFF,
    SD16DF: SD16_A.SD16DF_OFF,
    SD16IE: SD16_A.SD16IE_OFF,
    SD16IFG: SD16_A.SD16IFG_OFF,
    SD16SC: SD16_A.SD16SC_OFF
};
 
 
config SD16_A.SD16CTL  // instance

SD16CTL Register

XDCscript usage meta-domain
var params = new SD16_A.Params;
  ...
params.SD16CTL = SD16_A.SD16CTL_t {
    SD16XDIV: SD16_A.SD16XDIV_0,
    SD16LP: SD16_A.SD16LP_OFF,
    SD16DIV: SD16_A.SD16DIV_0,
    SD16SSEL: SD16_A.SD16SSEL_0,
    SD16VMIDON: SD16_A.SD16VMIDON_OFF,
    SD16REFON: SD16_A.SD16REFON_OFF,
    SD16OVIE: SD16_A.SD16OVIE_OFF
};
 
 
config SD16_A.SD16INCTL0  // instance

SD16INCTL0 Register

XDCscript usage meta-domain
var params = new SD16_A.Params;
  ...
params.SD16INCTL0 = SD16_A.SD16INCTL0_t {
    SD16INTDLY: SD16_A.SD16INTDLY_0,
    SD16GAIN: SD16_A.SD16GAIN_1,
    SD16INCH: SD16_A.SD16INCH_0
};
 
 
config SD16_A.SD16IV  // instance

SD16IV Register

XDCscript usage meta-domain
var params = new SD16_A.Params;
  ...
params.SD16IV = Bits16 SD16_A.SD16IV_SD16OVIFG_OFF;
 
 
config SD16_A.SD16MEM0  // instance

SD16MEM0 Register

XDCscript usage meta-domain
var params = new SD16_A.Params;
  ...
params.SD16MEM0 = Bits16 SD16_A.SD16IV_SD16MEM0_OFF;
 
 
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;
  ...
const params.forceSetDefaultRegister = SD16_A.ForceSetDefaultRegister_t[] [
    {
        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.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
 
var inst = SD16_A.create(IClock.Instance clock, params);
// Create an instance-object
generated on Thu, 17 Nov 2011 02:04:52 GMT