enum IOA.OAADC0_t |
|
enum OAADC0_t {
OAADC0_OFF,
OAADC0
};
enum IOA.OAADC1_t |
|
enum OAADC1_t {
OAADC1_OFF,
OAADC1
};
enum IOA.OAFBR_t |
|
OAx feedback resistor select
enum OAFBR_t {
OAFBR_0,
OAFBR_1,
OAFBR_2,
OAFBR_3,
OAFBR_4,
OAFBR_5,
OAFBR_6,
OAFBR_7
};
enum IOA.OAFC_t |
|
OAx function control
enum OAFC_t {
OAFC_0,
OAFC_1,
OAFC_2,
OAFC_3,
OAFC_4,
OAFC_5,
OAFC_6,
OAFC_7
};
enum IOA.OANEXT_t |
|
enum OANEXT_t {
OANEXT_OFF,
OANEXT
};
enum IOA.OAN_t |
|
Inverting input selection
enum OAN_t {
OAN_0,
// OAxI0
OAN_1,
// OAxI1
OAN_2,
// OAxIA (see the device-specific data sheet for connected signal)
OAN_3
// OAxIB (see the device-specific data sheet for connected signal)
};
enum IOA.OAPM_t |
|
Slew rate select
enum OAPM_t {
OAPM_0,
// OAx Power mode select: Off, output high Z
OAPM_1,
// OAx Power mode select: Slow
OAPM_2,
// OAx Power mode select: Medium
OAPM_3
// OAx Power mode select: Fast
};
enum IOA.OAP_t |
|
Non-inverting input selection
enum OAP_t {
OAP_0,
// OAxI0
OAP_1,
// OAxI1
OAP_2,
// OAxIA (see the device-specific data sheet for connected signal)
OAP_3
// OAxIB (see the device-specific data sheet for connected signal)
};
enum IOA.OARRIP_t |
|
enum OARRIP_t {
OARRIP_OFF,
OARRIP
};
typedef IOA.IPeripheralArray |
|
typedef IOA.StringArray |
|
typedef String StringArray[];
struct IOA.ForceSetDefaultRegister_t |
|
Force Set Default Register
metaonly struct ForceSetDefaultRegister_t {
String register;
Bool regForceSet;
};
DETAILS
Type to store if each register needs to be forced initialized
even if the register is in default state.
SEE
struct IOA.OAxCTL0_t |
|
Opamp Control Register 0 Definition
metaonly struct OAxCTL0_t {
// Inverting input select. These bits select the input signal for the OA inverting
input.
00 OAxI0
01 OAxI1
10 OAxIA (see the device-specific data sheet for connected signal)
11 OAxIB (see the device-specific data sheet for connected signal)
// Non-inverting input select. These bits select the input signal for the OA
non-inverting input.
00 OAxI0
01 OA0I1
10 OAxIA (see the device-specific data sheet for connected signal)
11 OAxIB (see the device-specific data sheet for connected signal)
// Slew rate select. These bits select the slew rate vs. current consumption
for the OA.
00 Off, output high Z
01 Slow
10 Medium
11 Fast
// OA output select. These bits, together with the OAFCx bits, control the
routing of the OAx output when OAPMx > 0.
When OAFCx = 0:
00 OAxOUT connected to external pins and ADC input A1, A3, or A5
01 OAxOUT connected to external pins and ADC input A12, A13, or A14
10 OAxOUT connected to external pins and ADC input A1, A3, or A5
11 OAxOUT connected to external pins and ADC input A12, A13, or A14
When OAFCx > 0:
00 OAxOUT used for internal routing only
01 OAxOUT connected to external pins and ADC input A12, A13, or A14
10 OAxOUT connected to external pins and ADC input A1, A3, or A5
11 OAxOUT connected internally to ADC input A12, A13 , or A14.
External A12, A13, or A14 pin connections are disconnected from the
ADC
// OA output select. These bits, together with the OAFCx bits, control the
routing of the OAx output when OAPMx > 0.
When OAFCx = 0:
00 OAxOUT connected to external pins and ADC input A1, A3, or A5
01 OAxOUT connected to external pins and ADC input A12, A13, or A14
10 OAxOUT connected to external pins and ADC input A1, A3, or A5
11 OAxOUT connected to external pins and ADC input A12, A13, or A14
When OAFCx > 0:
00 OAxOUT used for internal routing only
01 OAxOUT connected to external pins and ADC input A12, A13, or A14
10 OAxOUT connected to external pins and ADC input A1, A3, or A5
11 OAxOUT connected internally to ADC input A12, A13 , or A14.
External A12, A13, or A14 pin connections are disconnected from the
ADC
};
SEE
struct IOA.OAxCTL1_t |
|
Opamp Control Register 1 Definition
metaonly struct OAxCTL1_t {
// OAx feedback resistor select
000 Tap 0 - 0R/16R
001 Tap 1 - 4R/12R
010 Tap 2 - 8R/8R
011 Tap 3 - 10R/6R
100 Tap 4 - 12R/4R
101 Tap 5 - 13R/3R
110 Tap 6 - 14R/2R
111 Tap 7 - 15R/1R
// OAx function control. This bit selects the function of OAx
000 General purpose opamp
001 Unity gain buffer for three-opamp differential amplifier
010 Unity gain buffer
011 Comparator
100 Non-inverting PGA amplifier
101 Cascaded non-inverting PGA amplifier
110 Inverting PGA amplifier
111 Differential amplifier
// OAx inverting input externally available. This bit, when set, connects the
inverting OAx input to the external pin when the integrated resistor network
is used.
0 OAx inverting input not externally available
1 OAx inverting input externally available
// OAx reverse resistor connection in comparator mode
0 RTOP is connected to AVSS and RBOTTOM is connected to AVCC when
OAFCx = 3
1 RTOP is connected to AVCC and RBOTTOM is connected to AVSS when
OAFCx = 3
};
SEE
IOA.addPeripheralsMap() // module-wide |
|
Create a map of all peripherals available on a device
ARGUMENTS
DETAILS
The config parameter
peripherals is by default undefined in an
xdc.platform.ICpuDataSheet instance. This function gathers
all instance configuration parameters that are of the type
xdc.platform.IPeripheral into the map
peripherals.
IOA.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
IOA.getRegisters() // module-wide |
|
Find all registers defined by the peripheral
RETURNS
Returns an array of register names
config IOA.name // instance |
|
Specific peripheral name given by the device
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 IOA.owner // instance |
|
String specifying the entity that manages the peripheral
IOA.getNumberOfOA() // instance |
|
Returns the number of available OA