enum IOA.OAADC0_t |
|
enum OAADC0_t {
OAADC0_OFF,
// OAx output to ADC12 input channel select 0
OAADC0
// OAx output to ADC12 input channel select 0
};
enum IOA.OAADC1_t |
|
enum OAADC1_t {
OAADC1_OFF,
// OAx output to ADC12 input channel select 1
OAADC1
// OAx output to ADC12 input channel select 1
};
enum IOA.OAFBR_t |
|
OAx feedback resistor select
enum OAFBR_t {
OAFBR_0,
// OAx Feedback resistor: Tap 0
OAFBR_1,
// OAx Feedback resistor: Tap 1
OAFBR_2,
// OAx Feedback resistor: Tap 2
OAFBR_3,
// OAx Feedback resistor: Tap 3
OAFBR_4,
// OAx Feedback resistor: Tap 4
OAFBR_5,
// OAx Feedback resistor: Tap 5
OAFBR_6,
// OAx Feedback resistor: Tap 6
OAFBR_7
// OAx Feedback resistor: Tap 7
};
enum IOA.OAFC_t |
|
OAx function control
enum OAFC_t {
OAFC_0,
// General Purpose
OAFC_1,
// Unity gain buffer for three-opamp differential amplifier
OAFC_2,
// Unity gain buffer
OAFC_3,
// Comparator
OAFC_4,
// Non-inverting PGA
OAFC_5,
// Cascaded non-inverting PGA
OAFC_6,
// Inverting PGA
OAFC_7
// Differential amplifier
};
enum IOA.OANEXT_t |
|
enum OANEXT_t {
OANEXT_OFF,
// OAx inverting input not externally available
OANEXT
// OAx inverting input externally available
};
enum IOA.OAN_t |
|
Inverting input selection
enum OAN_t {
OAN_0,
// OAxI0
OAN_1,
// OAxI1
OAN_2,
// OAxI2
OAN_3
// OAxI3
};
enum IOA.OAPM_t |
|
Slew rate select
enum OAPM_t {
OAPM_0,
// Off, output high Z
OAPM_1,
// Slow
OAPM_2,
// Medium
OAPM_3
// Fast
};
enum IOA.OAP_t |
|
Non-inverting input selection
enum OAP_t {
OAP_0,
// OAxI0
OAP_1,
// OAxI1
OAP_2,
// OAxI2
OAP_3
// OAxI3
};
enum IOA.OARRIP_t |
|
enum OARRIP_t {
OARRIP_OFF,
// Rtop = AVss, Rbottom = AVcc
OARRIP
// Rtop = AVcc, Rbottom = AVss
};
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.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