![]() |
Kinetis SDK v.1.2 API Reference Manual
Rev. 0
Freescale Semiconductor, Inc.
|
Data Structures | |
struct | tsi_reference_osc_charge_current_limits_t |
TSI Reference oscillator charge current select limits. More... | |
struct | tsi_external_osc_charge_current_limits_t |
TSI External oscillator charge current select limits. More... | |
struct | tsi_config_t |
TSI configuration structure. More... | |
struct | tsi_parameter_limits_t |
TSI operation mode limits. More... | |
Functions | |
void | TSI_HAL_EnableLowPower (TSI_Type *base) |
Enable low power for TSI module. More... | |
static void | TSI_HAL_EnableOutOfRangeInterrupt (TSI_Type *base) |
Enable out of range interrupt. More... | |
static void | TSI_HAL_EnableEndOfScanInterrupt (TSI_Type *base) |
Enable end of scan interrupt. More... | |
static void | TSI_HAL_EnableModule (TSI_Type *base) |
Enable Touch Sensing Input Module. More... | |
static void | TSI_HAL_DisableModule (TSI_Type *base) |
Disable Touch Sensing Input Module. More... | |
static void | TSI_HAL_EnableInterrupt (TSI_Type *base) |
Enable TSI module interrupt. More... | |
static void | TSI_HAL_DisableInterrupt (TSI_Type *base) |
Disable TSI interrupt. More... | |
static uint32_t | TSI_HAL_IsInterruptEnabled (TSI_Type *base) |
Get interrupt enable flag. More... | |
static uint32_t | TSI_HAL_GetEnableStop (TSI_Type *base) |
Get TSI STOP enable. More... | |
static void | TSI_HAL_EnableStop (TSI_Type *base) |
Set TSI STOP enable. More... | |
static void | TSI_HAL_DisableStop (TSI_Type *base) |
Set TSI STOP disable. More... | |
static void | TSI_HAL_EnableHardwareTriggerScan (TSI_Type *base) |
Enable periodical (hardware) trigger scan. More... | |
static void | TSI_HAL_EnableSoftwareTriggerScan (TSI_Type *base) |
Enable periodical (hardware) trigger scan. More... | |
static void | TSI_HAL_CurrentSourcePairSwapped (TSI_Type *base) |
The current sources (CURSW) of electrode oscillator and reference oscillator are swapped. More... | |
static void | TSI_HAL_CurrentSourcePairNotSwapped (TSI_Type *base) |
The current sources (CURSW) of electrode oscillator and reference oscillator are not swapped. More... | |
static uint32_t | TSI_HAL_GetCurrentSourcePairSwapped (TSI_Type *base) |
Get current source pair swapped status. More... | |
static void | TSI_HAL_ClearOutOfRangeFlag (TSI_Type *base) |
Clear out of range flag. More... | |
static void | TSI_HAL_ClearEndOfScanFlag (TSI_Type *base) |
Clear end of scan flag. More... | |
static void | TSI_HAL_SetPrescaler (TSI_Type *base, tsi_electrode_osc_prescaler_t prescaler) |
Set prescaler. More... | |
static void | TSI_HAL_SetNumberOfScans (TSI_Type *base, tsi_n_consecutive_scans_t number) |
Set number of scans (NSCN). More... | |
static void | TSI_HAL_SetMeasuredChannelNumber (TSI_Type *base, uint32_t channel) |
Set the measured channel number. More... | |
static uint32_t | TSI_HAL_GetMeasuredChannelNumber (TSI_Type *base) |
Get the measured channel number. More... | |
static void | TSI_HAL_DmaTransferEnable (TSI_Type *base) |
DMA transfer enable. More... | |
static void | TSI_HAL_DmaTransferDisable (TSI_Type *base) |
DMA transfer disable - do not generate DMA transfer request. More... | |
static uint32_t | TSI_HAL_IsDmaTransferEnable (TSI_Type *base) |
Get DMA transfer enable flag. More... | |
static void | TSI_HAL_StartSoftwareTrigger (TSI_Type *base) |
Start measurement (trigger the new measurement). More... | |
static uint32_t | TSI_HAL_GetCounter (TSI_Type *base) |
Get conversion counter value. More... | |
static void | TSI_HAL_SetLowThreshold (TSI_Type *base, uint32_t low_threshold) |
Set TSI wake-up channel low threshold. More... | |
static void | TSI_HAL_SetHighThreshold (TSI_Type *base, uint32_t high_threshold) |
Set TSI wake-up channel high threshold. More... | |
static void | TSI_HAL_SetMode (TSI_Type *base, tsi_analog_mode_select_t mode) |
Set analog mode of the TSI module. More... | |
static tsi_analog_mode_select_t | TSI_HAL_GetMode (TSI_Type *base) |
Get analog mode of the TSI module. More... | |
static uint32_t | TSI_HAL_GetNoiseResult (TSI_Type *base) |
Get analog mode of the TSI module. More... | |
static void | TSI_HAL_SetReferenceChargeCurrent (TSI_Type *base, tsi_reference_osc_charge_current_t current) |
Set the reference oscilator charge current. More... | |
static tsi_reference_osc_charge_current_t | TSI_HAL_GetReferenceChargeCurrent (TSI_Type *base) |
Get the reference oscilator charge current. More... | |
static void | TSI_HAL_SetOscilatorVoltageRails (TSI_Type *base, tsi_oscilator_voltage_rails_t dvolt) |
Set the oscilator's volatage rails. More... | |
static tsi_oscilator_voltage_rails_t | TSI_HAL_GetOscilatorVoltageRails (TSI_Type *base) |
Get the oscilator's volatage rails. More... | |
static void | TSI_HAL_SetElectrodeChargeCurrent (TSI_Type *base, tsi_external_osc_charge_current_t current) |
Set external electrode charge current. More... | |
static tsi_external_osc_charge_current_t | TSI_HAL_GetElectrodeChargeCurrent (TSI_Type *base) |
Get electrode charge current. More... | |
Variables | |
uint32_t | tsi_hal_gencs |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
This enables TSI module function in low power modes.
base | TSI module base address. |
|
inlinestatic |
The TSI is disabled in low power modes.
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
prescaler | Prescaler value. |
|
inlinestatic |
base | TSI module base address. |
number | Number of scans. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
low_threshold | Low counter threshold. |
|
inlinestatic |
base | TSI module base address. |
high_threshold | High counter threshold. |
|
inlinestatic |
base | TSI module base address. |
current | The charge current. |
|
inlinestatic |
base | TSI module base address. |
|
inlinestatic |
base | TSI module base address. |
current | Electrode current. |
|
inlinestatic |
base | TSI module base address. |