MSP430™CapTIvateSoftwareLibraryAPIGuide
1_83_00_05
|
Low level CapTIvate configuration and peripheral hardware abstraction module. More...
Low level CapTIvate configuration and peripheral hardware abstraction module.
This module contains low-level APIs for accessing the CapTIvate™ IP. Some functions are a direct access of the CapTIvate™ registers while others take the definitions (see CAPT_Type.h) and place the appropriate values in the CapTIvate™ peripheral registers.
#define CAPT_TIMER_SRC_ACLK (0x00) |
#define CAPT_TIMER_SRC_VLOCLK (0x01) |
#define CAPT_TIMER_CLKDIV__1 (0x00) |
#define CAPT_TIMER_CLKDIV__2 (0x01) |
#define CAPT_TIMER_CLKDIV__4 (0x02) |
#define CAPT_TIMER_CLKDIV__8 (0x03) |
#define CAPT_TIMER_CLKDIV__16 (0x04) |
#define CAPT_TIMER_CLKDIV__32 (0x05) |
#define CAPT_TIMER_CLKDIV__64 (0x06) |
#define CAPT_TIMER_CLKDIV__128 (0x07) |
#define CAPT_COUNTER__16 (0x00) |
#define CAPT_COUNTER__32 (0x01) |
#define CAPT_COUNTER__64 (0x02) |
#define CAPT_COUNTER__128 (0x03) |
#define CAPT_COUNTER__256 (0x04) |
#define CAPT_COUNTER__512 (0x05) |
#define CAPT_COUNTER__1024 (0x06) |
#define CAPT_COUNTER__2048 (0x07) |
#define CAPT_COUNTER__DISABLED (0x08) |
#define CAPT_OSC_FREQ_DEFAULT (0x00) |
#define CAPT_OSC_FREQ_16MHZ (0x00) |
#define CAPT_OSC_FREQ_14P7MHZ (0x01) |
#define CAPT_OSC_FREQ_13P1MHZ (0x02) |
#define CAPT_OSC_FREQ_11P2MHZ (0x03) |
#define CAPT_REFERENCE_CAP__SELF_1P0PF (0x00) |
#define CAPT_REFERENCE_CAP__SELF_1P1PF (0x04) |
#define CAPT_REFERENCE_CAP__SELF_1P5PF (0x05) |
#define CAPT_REFERENCE_CAP__SELF_5P0PF (0x02) |
#define CAPT_REFERENCE_CAP__SELF_5P1PF (0x06) |
#define CAPT_REFERENCE_CAP__SELF_5P5PF (0x07) |
#define CAPT_REFERENCE_CAP__MUTUAL_0P1PFM_1P0PF (0x00) |
#define CAPT_REFERENCE_CAP__MUTUAL_0P5PFM_1P0PF (0x01) |
#define CAPT_REFERENCE_CAP__MUTUAL_0P1PFM_5P0PF (0x02) |
#define CAPT_REFERENCE_CAP__MUTUAL_0P5PFM_5P0PF (0x03) |
#define CAPT_COARSEGAIN_0 (0x00) |
#define CAPT_COARSEGAIN_1 (0x01) |
#define CAPT_COARSEGAIN_2 (0x02) |
#define CAPT_COARSEGAIN_3 (0x03) |
#define CAPT_COARSEGAIN_4 (0x04) |
#define CAPT_COARSEGAIN_5 (0x05) |
#define CAPT_COARSEGAIN_6 (0x06) |
#define CAPT_COARSEGAIN_7 (0x07) |
#define CAPT_COARSEGAIN_MIN (CAPT_COARSEGAIN_0) |
#define CAPT_COARSEGAIN_MAX (CAPT_COARSEGAIN_7) |
#define CAPT_FINEGAIN_0 (0x00) |
#define CAPT_FINEGAIN_1 (0x01) |
#define CAPT_FINEGAIN_2 (0x02) |
#define CAPT_FINEGAIN_3 (0x03) |
#define CAPT_FINEGAIN_4 (0x04) |
#define CAPT_FINEGAIN_5 (0x05) |
#define CAPT_FINEGAIN_6 (0x06) |
#define CAPT_FINEGAIN_7 (0x07) |
#define CAPT_FINEGAIN_8 (0x08) |
#define CAPT_FINEGAIN_9 (0x09) |
#define CAPT_FINEGAIN_10 (0x0A) |
#define CAPT_FINEGAIN_11 (0x0B) |
#define CAPT_FINEGAIN_12 (0x0C) |
#define CAPT_FINEGAIN_13 (0x0D) |
#define CAPT_FINEGAIN_14 (0x0E) |
#define CAPT_FINEGAIN_15 (0x0F) |
#define CAPT_FINEGAIN_16 (0x10) |
#define CAPT_FINEGAIN_17 (0x11) |
#define CAPT_FINEGAIN_18 (0x12) |
#define CAPT_FINEGAIN_19 (0x13) |
#define CAPT_FINEGAIN_MIN (CAPT_FINEGAIN_0) |
#define CAPT_FINEGAIN_MAX (CAPT_FINEGAIN_19) |
#define CAPT_OFFSETTAP_MIN (0x00) |
#define CAPT_OFFSETTAP_MAX (0xFF) |
#define CAPT_OFFSETSCALE__VERYSMALL (0x0000) |
#define CAPT_OFFSETSCALE__SMALL (0x0100) |
#define CAPT_OFFSETSCALE__LARGE (0x0200) |
#define CAPT_OFFSETSCALE__VERYLARGE (0x0300) |
#define CAPT_OFFSETSCALE_MIN (CAPT_OFFSETSCALE__VERYSMALL) |
#define CAPT_OFFSETSCALE_MAX (CAPT_OFFSETSCALE__VERYLARGE) |
#define CAPT_END_OF_CONVERSION_INTERRUPT (0x0001) |
#define CAPT_DETECTION_INTERRUPT (0x0002) |
#define CAPT_TIMER_INTERRUPT (0x0004) |
#define CAPT_CONVERSION_COUNTER_INTERRUPT (0x0008) |
#define CAPT_MAX_COUNT_ERROR_INTERRUPT (0x0100) |
#define CAPT_IV_NO_INTERRUPT (0x0000) |
#define CAPT_IV_END_OF_CONVERSION (0x0002) |
Referenced by CAPT_ISR().
#define CAPT_IV_DETECTION (0x0004) |
Referenced by CAPT_ISR().
#define CAPT_IV_TIMER (0x0006) |
Referenced by CAPT_ISR().
#define CAPT_IV_CONVERSION_COUNTER (0x0008) |
Referenced by CAPT_ISR().
#define CAPT_IV_MAX_COUNT_ERROR (0x000A) |
Referenced by CAPT_ISR().
void CAPT_init | ( | void | ) |
CAPT_init is not a ROM function. This function initializes global parameters of the CapTIvate peripheral that are independent of mode and application. This function should always be called once to initialize the peripheral after a reset.Initialize global settings for an application.
Referenced by CAPT_initUI().
bool CAPT_pollResetStatus | ( | void | ) |
Poll Reset Status Flag of the CapTIvate peripheral; 0, reset is not complete. This function is intended to be used after the CAPT_reset() function to determine that the peripheral is ready.
bool CAPT_pollCIPF | ( | void | ) |
Poll Conversion in progress flag (CIPF); 0, no conversion in progress. The CIPF is not directly correlated to the conversion start: following a conversion start there is a period during which the CIPF is 0 before transitioning to a 1 when the actual convesion takes place.
void CAPT_reset | ( | void | ) |
Reset the CapTIvate peripheral.
void CAPT_setStabilization | ( | void | ) |
Set Stabilization control bit. This bit is used whenever a conversion is predicated on a user controlled stabilization time. The stabilization control must be set before the conversion is started.
void CAPT_releaseStabilization | ( | void | ) |
Clear Stabilization control bit. This bit is used whenever a conversion is predicated on a user controlled stabilization time. Although the IO will be active, clearing the stabilization control bit will start the actual measurement.
void CAPT_enableRefCap | ( | tElement * | pElement, |
uint8_t | capSize | ||
) |
Enable a Reference cap for a specific block. The element definition, tElement.ui8RxBlock, is used to determine which block the reference capacitor is applied to. The reference capacitor size is defined in the following table: Size Self Value Mutual Value 0 1.0pF 0.1pF 1 1.0pF 0.5pF 2 5.0pF 0.1pF 3 5.0pF 0.5pF 4 1.1pF 0.1pF 5 1.5pF 0.1pF 6 5.1pF 0.1pF 7 5.5pF 0.1pF
pElement | = pointer to element |
capSize | = size of cap |
void CAPT_disableRefCap | ( | void | ) |
Disable and Remove the Reference Capacitor from the measurement circuit.
void CAPT_enableSensorIO | ( | tSensor * | pSensor | ) |
Enable all IO associated with a sensor. When a CapTIvate IO is enabled it is in the analog mode and the digital function is disabled. Before enabling the IO it is recommended to set the appropriate IO state as defined in the tSensor.bIdleState, with the CAPT_initSensorIO function.
pSensor | = pointer to sensor |
void CAPT_disableSensorIO | ( | tSensor * | pSensor | ) |
Disable all IO associated with a sensor.
pSensor | = pointer to sensor |
void CAPT_initSensorIO | ( | tSensor * | pSensor | ) |
This function configures the active (Rx or Tx) and inactive (High-z or GND) states of the captivate channels, for a given sensor, as well as initialize the IO to the inactive state.
pSensor | = pointer to sensor |
void CAPT_forceSensorIO | ( | tSenseTechnology | rxBarTx, |
tSensor * | pSensor | ||
) |
Set all Sensor IO to Tx or Rx based upon parameter passed. Also make these active.
rxBarTx | = Set to Rx if eSelf (0) or Tx if eProjected (1) |
pSensor | = pointer to sensor |
void CAPT_applySensorParams | ( | tSensor * | pSensor | ) |
Initialize Sensor specific settings that will remain constant for all cycles within the Sensor. Parameters Applied: tSensor.SensingMethod tSensor.DirectionOfInterest tSensor.ui16NegativeTouchThreshold tSensor.ui16ProxThreshold tSensor.bModEnable tSensor.ui8BiasControl tSensor.bCsDischarge tSensor.bLPMControl tSensor.ui8InputSyncControl tSensor.bTimerSyncControl tSensor.ui8ChargeLength tSensor.ui8TransferLength tSensor.ui16ErrorThreshold tSensor.ui8CntBeta tSensor.ui8LTABeta tSensor.bSensorHalt tSensor.bPTSensorHalt tSensor.bSensorTouch tSensor.bSensorProx
pSensor | = pointer to sensor |
void CAPT_enableSensorSyncEvent | ( | void | ) |
Enable Sync event. When enabled the start of conversion is gated by the edge of the SYNC pin.
void CAPT_disableSensorSyncEvent | ( | void | ) |
Disable Sync event.
void CAPT_bypassFSM | ( | void | ) |
Bypass FSM. Bypassing the FSM only the maximum count and end of conversion IFGs are updated.
void CAPT_engageFSM | ( | void | ) |
Engage FSM. The Finite State Machine (FSM), performs several post measurement filters for the LTA, and measurement filter count as well as well as detection logic.
void CAPT_applySensorFreq | ( | uint8_t | freqSelect, |
tSensor * | pSensor | ||
) |
Apply the Sensor frequency divider and for the requested frequency select. This frequency is consistent for all elements within the cycle. freqSelect Frequency 0 16Mhz 1 14.7Mhz 2 13.1Mhz 3 11.2Mhz
freqSelect | = frequency |
pSensor | = pointer to sensor |
Initialize cycle IO parameters. Set to active the channels required for the cycle measurement. The peripheral will manage the IO state transitioning the active channels between the defined active state (Rx or Tx) when actively measuring capacitance and the inactive state (GND or High-Z) when the measurement is complete. All channels that are not active but enabled will remain in their inactive state.
pSensor | = pointer to sensor |
pCycle | = pointer to cycle |
Clear cycle IO parameters. Clear active channels.
pSensor | = pointer to sensor |
pCycle | = pointer to cycle |
void CAPT_applyCycleComp | ( | uint8_t | freqOffset, |
tCycle * | pCycle | ||
) |
Initialize cycle level parameters. These parameters are consistent for all elements within the cycle.
freqOffset | = offset to indicate which frequency is being measured |
pCycle | = pointer to cycle |
void CAPT_applyAutoMultiFreqCycleComp | ( | tCycle * | pCycle | ) |
Only valid on certain devices, please consult device-specific datasheet. Initialize cycle level parameters when using the hardware FSM to frequency hop. Only available on devices that support hardware frequency hopping. Loads all parameters necessary to perform a full frequency hop operation.
pCycle | = pointer to cycle |
void CAPT_applyCycleFSM | ( | tCycle * | pCycle | ) |
Apply cycle level parameters. These parameters are consistent for all elements within the cycle.
pCycle | = pointer to cycle |
void CAPT_enableISR | ( | uint16_t | interruptEnable | ) |
Enable ISR. The interrupts are defined as follows: BIT0 End of Conversion interrupt enable BIT1 CapTIvate detection interrupt enable BIT2 CapTIvate Timer interrupt enable BIT3 CapTIvate Conversion Counter interrupt enable BIT8 CapTIvate maximum count error interrupt enable
interruptEnable | = Interrupt(s) to enable |
void CAPT_disableISR | ( | uint16_t | interruptDisable | ) |
Disable ISR. The interrupts are defined as follows: BIT0 End of Conversion interrupt disable BIT1 CapTIvate detection interrupt disable BIT2 CapTIvate Timer interrupt disable BIT3 CapTIvate Conversion Counter interrupt disable BIT8 CapTIvate maximum count error interrupt disable
interruptDisable | = Interrupt(s) to disable |
void CAPT_setCAPSTART | ( | void | ) |
Set the cycle conversion bit. If the CAPPWR bit is set (call CAPT_powerOn), then setting the cycle conversion bit will start the conversion process - the actual conversion (indicated by CAPT_pollCIPF returning a '1') will take place after the stabilization time. If the SYNC enable is set, either via the sensor configuration and CAPT_applySensor API or the CAPT_enableSensorSyncEvent API, then the conversion will be gate by the SYNC event (rising/falling edge) on the SYNC pin.
void CAPT_clearCAPSTART | ( | void | ) |
Clear the cycle conversion bit. When the conversion is in progress, calling CAPT_clearCAPSTART will stop the conversion.
Save the current status of the peripheral into the data structures of Raw measurement information is stored in: pCycle->pElement[n]->pRawCount[indexFreq], where n is 0 to pCycle.ui8NumberofElements If there is a maximum count error, then the bit pSensor->bMaxCountError is set and the value in pCycle->pElement[n]->pRawCount[indexFreq] is cleared.
indexFreq | = save results for selected frequency. |
pSensor | = pointer to sensor. |
pCycle | = pointer to cycle. |
Save filter results, pElements[n]->LTA and pElements[n]->filterCount, and status bits, pElements[n]->bDetect and pElements[n]->bNegativeTouch, in addition to what is saved in CAPT_saveCycleRawResults from the peripheral.
pSensor | = pointer to sensor. |
pCycle | = pointer to cycle. |
Only valid on certain devices, please consult device-specific datasheet. To be used for Automatic (Hardware) Multiple Frequency use cases only: transfer of Memory Mapped Registers to SRAM structs is slightly different.
Save filter results, pElements[n]->LTA and pElements[n]->filterCount, and status bits, pElements[n]->bDetect and pElements[n]->bNegativeTouch, in addition to what is saved in CAPT_saveCycleRawResults from the peripheral.
pSensor | = pointer to sensor. |
pCycle | = pointer to cycle. |
void CAPT_selectCCounterInterval | ( | uint8_t | counterSel | ) |
Select the CapTIvate™ counter interval. The input represents the number of conversions until a counter overflow event, CAPCNTRIFG. counterSel Number of Conversions 0 16 1 32 2 64 3 128 4 256 5 512 6 1024 7 2048
counterSel | = counter selection |
void CAPT_clearCCounter | ( | void | ) |
Clear the CapTIvate™ counter interval.
void CAPT_startCCounter | ( | void | ) |
Start (enable) the CapTIvate™ counter interval.
void CAPT_stopCCounter | ( | void | ) |
Stop (disable) the CapTIvate™ counter interval.
void CAPT_selectTimerSourceDivider | ( | uint8_t | sourceDiv | ) |
Select the input divider to the CapTIvate™ timer.
sourceDiv | = time source divider |
void CAPT_selectTimerSource | ( | uint8_t | source | ) |
Select the input source to the CapTIvate™ timer.
source | = timer source selection |
void CAPT_enableTimerTrigMeasurement | ( | void | ) |
Enable measurements to be triggered from CapTIvate™ timer. Set CAPTCCTRL0:CAPTCONV
void CAPT_disableTimerTrigMeasurement | ( | void | ) |
Disable measurements to be triggered from CapTIvate™ timer. Clear CAPTCCTRL0:CAPTCONV
void CAPT_clearTimer | ( | void | ) |
Clear the CapTIvate™ timer.
void CAPT_startTimer | ( | void | ) |
Start (enable) the CapTIvate™ timer.
void CAPT_stopTimer | ( | void | ) |
Stop (disable) the CapTIvate™ timer.
uint16_t CAPT_readTimerRegister | ( | void | ) |
Stop (disable) the CapTIvate™ timer.
uint16_t CAPT_readTimerCompRegister | ( | void | ) |
Read value from timer compare register.
void CAPT_writeTimerCompRegister | ( | uint16_t | compRegister | ) |
Write value into timer compare register.
compRegister | = Compare Register Value |
void CAPT_powerOff | ( | void | ) |
Turn off the CapTIvate™ IP.
void CAPT_powerOn | ( | void | ) |
Turn on the CapTIvate™ IP.
void CAPT_setChannelActive | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Activate specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y. When a conversion is started then this IO will enter either a Tx or Rx mode of operation.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_setChannelEnable | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Enable a specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_setChannelOffState | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Set off state for specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y. This puts the IO into the Ground state when enabled and not active.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_setChannelOnState | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Set on state for specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y. This puts the IO into the Rx mode. The mode, mutual or self, is defined by the sensor parameter tSensor.SensingMethod and applied by API CAPT_apply_SensorParams. The default setting for the block is self mode.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_clearChannelActive | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Activate a specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_clearChannelEnable | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Enable a specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_clearChannelOffState | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Clear off state for specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_clearChannelOnState | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Set on state for specific IO channel, CAPx.y, ui8Block-> x, ui8Pin->y.
ui8Block | = select block |
ui8Pin | = select pin |
void CAPT_writeCoarseGain | ( | uint8_t | ui8Block, |
uint8_t | ui8Value | ||
) |
Write Coarse Gain value to Block Compensation.
ui8Block | = select block |
ui8Value | = value |
uint8_t CAPT_readCoarseGain | ( | uint8_t | ui8Block | ) |
Read Coarse Gain value from Block Compensation.
ui8Block | = select block |
void CAPT_writeFineGain | ( | uint8_t | ui8Block, |
uint8_t | ui8Value | ||
) |
Write Fine Gain value to Block Compensation.
ui8Block | = select block |
ui8Value | = value |
uint8_t CAPT_readFineGain | ( | uint8_t | ui8Block | ) |
Read Fine Gain value from Block Compensation.
ui8Block | = select block |
void CAPT_writeOffsetTap | ( | uint8_t | ui8Block, |
uint16_t | ui16Value | ||
) |
Write Offset Tap value to Block Compensation.
ui8Block | = select block |
ui16Value | = offsetvalue |
uint16_t CAPT_readOffsetTap | ( | uint8_t | ui8Block | ) |
Read Offset Tap value from Block Compensation.
ui8Block | = select block |
uint16_t CAPT_readConversion | ( | uint8_t | ui8Block | ) |
Read Conversion value from Block.
ui8Block | = select block |
void CAPT_setCAPLPMCFG | ( | void | ) |
Set CAPLPMCFG.
void CAPT_clearCAPLPMCFG | ( | void | ) |
Clear CAPLPMCFG.
uint16_t CAPT_pollIFG | ( | uint16_t | ui16InterruptMask | ) |
Poll a CapTIvate™ peripheral interrupt flag.
ui16InterruptMask | is a bit mask of the interrupts to test. |
void CAPT_clearIFG | ( | uint16_t | ui16InterruptMask | ) |
Clear a Captivate peripheral interrupt flag. The bit mask is defined as: BIT0 -> End Of Conversion IFG BIT1 -> Detection IFG BIT2 -> CapTIvate Timer IFG (number of clock cycles) BIT3 -> CapTIvate Counter IFG (number of conversion cycles)
BIT8 -> Maximum Count Error IFG
ui16InterruptMask | is a bit mask of the interrupt flags to clear. |
uint16_t CAPT_getInterruptVector | ( | void | ) |
Retrieve the CapTIvate™ peripheral interrupt vector register
none. |
Referenced by CAPT_ISR().
void CAPT_enableShieldIO | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Enable a CapTIvate IO to be a shield.
ui8Block | is the CapTIvate block that the shield resides on. |
ui8Pin | is the pin on the block that the shield is connected to. |
void CAPT_disableShieldIO | ( | uint8_t | ui8Block, |
uint8_t | ui8Pin | ||
) |
Disable a CapTIvate shield IO.
ui8Block | is the CapTIvate block that the shield resides on. |
ui8Pin | is the pin on the block that the shield is connected to. |
void CAPT_selectElectrodeChargeVoltageSource | ( | tElectrodeChargeVoltageSourceSelectStyle | electrodeChargeVoltageSourceSelectStyle | ) |
Only valid on certain devices, please consult device-specific datasheet. Select CapTIvate electrode charge voltage source supply, which is used for sensing. You should only change sources when there is no conversion in progress.
electrodeChargeVoltageSourceSelectStyle | is the voltage source used to supply electrode charging. Valid values are:
|
Referenced by CAPT_initUI().
void CAPT_selectOversamplingCount | ( | tOversamplingStyle | oversamplingStyle | ) |
Only valid on certain devices, please consult device-specific datasheet. Select CapTIvate oversampling count.
oversamplingCount | is the number of data samples measured during FSM oversampling operation Valid values are:
|
bool CAPT_isFrequencyHopping | ( | void | ) |
Only valid on certain devices, please consult device-specific datasheet. Returns whether FSM-based autonomous frequency hopping is enabled or disabled.
none. |
void CAPT_enableFrequencyHopping | ( | void | ) |
Only valid on certain devices, please consult device-specific datasheet. Enable FSM-based autonomous frequency hopping, which improves noise immunity. Conversion frequency hops amongst the 4 preset values. Set CAPFSMCTRL0:FHOPEN
void CAPT_disableFrequencyHopping | ( | void | ) |
Only valid on certain devices, please consult device-specific datasheet. Disable FSM-based autonomous frequency hopping. Conversion frequency is fixed. Clear CAPFSMCTRL0:FHOPEN
tInputImpedanceBiasCurrent CAPT_getInputImpedanceBiasCurrent | ( | void | ) |
Only valid on certain devices, please consult device-specific datasheet. Returns level of input impedance bias current. Get CAPCTRL1:LOWRIN
none. |
void CAPT_clearInputImpedanceBiasCurrent | ( | void | ) |
Only valid on certain devices, please consult device-specific datasheet. Disables input impedance bias current to zero. Clear CAPCTRL1:LOWRIN
void CAPT_selectInputImpedanceBiasCurrent | ( | tInputImpedanceBiasCurrent | biasCurrent | ) |
Only valid on certain devices, please consult device-specific datasheet. Select CapTIvate input impedance bias current.
biasCurrent | is the strength of the input impedance bias current Valid values are:
|
Referenced by CAPT_initUI().
void CAPT_selectInputImpedanceBiasCurrentTrim | ( | uint8_t | trim, |
tElement * | pElement | ||
) |
Only valid on certain devices, please consult device-specific datasheet. Select CapTIvate input impedance bias current trim. Helps to calibrate how much current is removed based on input impedance bias current Trim is applied per block, while the bias current is for whole system.
trim | is the strength of the input impedance bias current extraction Valid values are 0-7. |
pElement | is the pointer to element about to utilize the trim. |