LL TSC Functions

Configuration

group TSC_LL_EF_Configuration1

Functions

void LL_TSC_Enable ( TSC_TypeDef * tscx )

Enable the TSC peripheral.

Reference Manual to LL API cross reference (Register Field Functions)

CR TSCE LL_TSC_Enable

Parameters :

tscx – TSC Instance.

void LL_TSC_Disable ( TSC_TypeDef * tscx )

Disable the TSC peripheral.

Reference Manual to LL API cross reference (Register Field Functions)

CR TSCE LL_TSC_Disable

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsEnabled ( const TSC_TypeDef * tscx )

Check if the TSC peripheral is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR TSCE LL_TSC_IsEnabled

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_StartAcq ( TSC_TypeDef * tscx )

Start Acquisition.

Reference Manual to LL API cross reference (Register Field Functions)

CR START LL_TSC_StartAcq

Parameters :

tscx – TSC Instance.

void LL_TSC_StopAcq ( TSC_TypeDef * tscx )

Stop Acquisition.

Reference Manual to LL API cross reference (Register Field Functions)

CR START LL_TSC_StopAcq

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsStartedAcq ( const TSC_TypeDef * tscx )

Check if the TSC Acquisition is started or Stopped.

Reference Manual to LL API cross reference (Register Field Functions)

CR START LL_TSC_IsStartedAcq

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_SetNormalAcqMode ( TSC_TypeDef * tscx )

Set Normal Acquisition mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR AM LL_TSC_SetNormalAcqMode

Parameters :

tscx – TSC Instance.

void LL_TSC_SetSynchronizedAcqMode ( TSC_TypeDef * tscx )

Set synchronization Acquisition mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR AM LL_TSC_SetSynchronizedAcqMode

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_GetAcqMode ( const TSC_TypeDef * tscx )

Get Acquisition mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR AM LL_TSC_GetAcqMode

Parameters :

tscx – TSC Instance.

Return values :

Returned – value can be one of the following values:

void LL_TSC_SetSyncPolarityFailling ( TSC_TypeDef * tscx )

Set synchronization polarity to falling edge.

Reference Manual to LL API cross reference (Register Field Functions)

CR SYNCPOL LL_TSC_SetSyncPolarityFailling

Parameters :

tscx – TSC Instance.

void LL_TSC_SetSyncPolarityRising ( TSC_TypeDef * tscx )

Set synchronization polarity to rising edge.

Reference Manual to LL API cross reference (Register Field Functions)

CR SYNCPOL LL_TSC_SetSyncPolarityRising

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_GetSyncPolarity ( const TSC_TypeDef * tscx )

Get synchronization polarity.

Reference Manual to LL API cross reference (Register Field Functions)

CR SYNCPOL LL_TSC_GetSyncPolarity

Parameters :

tscx – TSC Instance.

Return values :

Returned – value can be one of the following values:

void LL_TSC_SetIODefaultPushPull ( TSC_TypeDef * tscx )

Set IO default mode to output push-pull low.

Reference Manual to LL API cross reference (Register Field Functions)

CR IODEF LL_TSC_SetIODefaultPushPull

Parameters :

tscx – TSC Instance.

void LL_TSC_SetIODefaultFloat ( TSC_TypeDef * tscx )

Set IO default mode to input floating.

Reference Manual to LL API cross reference (Register Field Functions)

CR IODEF LL_TSC_SetIODefaultFloat

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_GetIODefaultMode ( const TSC_TypeDef * tscx )

Get IO default mode.

Reference Manual to LL API cross reference (Register Field Functions)

CR IODEF LL_TSC_GetIODefaultMode

Parameters :

tscx – TSC Instance.

Return values :

IReturned – value can be one of the following values:

void LL_TSC_SetMaxCountValue ( TSC_TypeDef * tscx , const uint32_t max_count_value )

Set Max count Value.

Reference Manual to LL API cross reference (Register Field Functions)

CR MCV LL_TSC_SetMaxCountValue

Parameters :
uint32_t LL_TSC_GetMaxCountValue ( const TSC_TypeDef * tscx )

Get Max count Value.

Reference Manual to LL API cross reference (Register Field Functions)

CR MCV LL_TSC_GetMaxCountValue

Parameters :

tscx – TSC Instance.

Return values :

Returned – value can be one of the following values:

void LL_TSC_SetPulseGenPrescaler ( TSC_TypeDef * tscx , const uint32_t pulse_gen_prescaler )

Set Pulse Generator Prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CR PGPSC LL_TSC_SetPulseGenPrescaler

Parameters :
uint32_t LL_TSC_GetPulseGenPrescaler ( const TSC_TypeDef * tscx )

Get Pulse Generator Prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CR PGPSC LL_TSC_GetPulseGenPrescaler

Parameters :

tscx – TSC Instance.

Return values :

returned – value can be one of the following values:

void LL_TSC_EnableSpreadSpecPrescaler ( TSC_TypeDef * tscx )

Enable the Spread Spectrum Prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSPSC LL_TSC_EnableSpreadSpecPrescaler

Parameters :

tscx – TSC Instance.

void LL_TSC_DisableSpreadSpecPrescaler ( TSC_TypeDef * tscx )

Disable the Spread Spectrum Prescaler.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSPSC LL_TSC_DisableSpreadSpecPrescaler

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsEnabledSpreadSpecPrescaler ( const TSC_TypeDef * tscx )

Check if Spread Spectrum Prescaler is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSPSC LL_TSC_IsEnabledSpreadSpecPrescaler

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_EnableSpreadSpectrum ( TSC_TypeDef * tscx )

Enable Spread Spectrum.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSE LL_TSC_EnableSpreadSpectrum

Parameters :

tscx – TSC Instance.

void LL_TSC_DisableSpreadSpectrum ( TSC_TypeDef * tscx )

Disable Spread Spectrum.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSE LL_TSC_DisableSpreadSpectrum

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsEnabledSpreadSpectrum ( const TSC_TypeDef * tscx )

Check if the Spread Spectrum is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSE LL_TSC_IsEnabledSpreadSpectrum

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_SetSpreadSpecDeviation ( TSC_TypeDef * tscx , const uint32_t spread_spec_deviation )

Set Spread spectrum deviation.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSD LL_TSC_SetSpreadSpecDeviation

Parameters :
  • tscx – TSC Instance.

  • spread_spec_deviation – Spread spectrum deviation, This parameter can be be a number between Min_Data = 0 and Max_Data = 127.

uint32_t LL_TSC_GetSpreadSpecDeviation ( const TSC_TypeDef * tscx )

Get Spread spectrum deviation.

Reference Manual to LL API cross reference (Register Field Functions)

CR SSD LL_TSC_GetSpreadSpecDeviation

Parameters :

tscx – TSC Instance.

Return values :

Returned – value can be be a number between Min_Data = 0 and Max_Data = 127.

void LL_TSC_SetChargeTransferPulseLow ( TSC_TypeDef * tscx , const uint32_t charge_transfer_pulse_low )

Set Charge transfer pulse low.

Reference Manual to LL API cross reference (Register Field Functions)

CR CTPL LL_TSC_SetChargeTransferPulseLow

Parameters :
uint32_t LL_TSC_GetChargeTransferPulseLow ( const TSC_TypeDef * tscx )

Get Charge transfer pulse low.

Reference Manual to LL API cross reference (Register Field Functions)

CR CTPL LL_TSC_GetChargeTransferPulseLow

Parameters :

tscx – TSC Instance.

Return values :

returned – value can be one of the following values:

void LL_TSC_SetChargeTransferPulseHigh ( TSC_TypeDef * tscx , const uint32_t charge_transfer_pulse_high )

Set Charge transfer pulse High.

Reference Manual to LL API cross reference (Register Field Functions)

CR CTPH LL_TSC_SetChargeTransferPulseHigh

Parameters :
uint32_t LL_TSC_GetChargeTransferPulseHigh ( const TSC_TypeDef * tscx )

Get Charge transfer pulse High.

Reference Manual to LL API cross reference (Register Field Functions)

CR CTPH LL_TSC_GetChargeTransferPulseHigh

Parameters :

tscx – TSC Instance.

Return values :

returned – value can be one of the following values:

void LL_TSC_Config ( TSC_TypeDef * tscx , const uint32_t cr_config , uint32_t channels , uint32_t shields , uint32_t samplings )

Configure the specified TSC Config.

Reference Manual to LL API cross reference (Register Field Functions)

CR CTPH LL_TSC_Config

CR CTPL LL_TSC_Config

CR PGPSC LL_TSC_Config

CR MCV LL_TSC_Config

IOCCR Gx_IOy LL_TSC_Config

IOSCR Gx_IOy LL_TSC_Config

IOGCSR GxE LL_TSC_Config

Parameters :

IT Management

group TSC_LL_EF_IT_Management

Functions

void LL_TSC_EnableIT_EOA ( TSC_TypeDef * tscx )

Enable EOA interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_EnableIT_EOA

Parameters :

tscx – TSC Instance.

void LL_TSC_DisableIT_EOA ( TSC_TypeDef * tscx )

Disable EOA interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_DisableIT_EOA

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsEnabledIT_EOA ( const TSC_TypeDef * tscx )

Check if EOA interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_IsEnabledIT_EOA

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_EnableIT_MCE ( TSC_TypeDef * tscx )

Enable MCE interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IER MCEIE LL_TSC_EnableIT_MCE

Parameters :

tscx – TSC Instance.

void LL_TSC_DisableIT_MCE ( TSC_TypeDef * tscx )

Disable MCE interrupt.

Reference Manual to LL API cross reference (Register Field Functions)

IER MCEIE LL_TSC_DisableIT_MCE

Parameters :

tscx – TSC Instance.

uint32_t LL_TSC_IsEnabledIT_MCE ( const TSC_TypeDef * tscx )

Check if MCE interrupt is enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

IER MCEIE LL_TSC_IsEnabledIT_MCE

Parameters :

tscx – TSC Instance.

Return values :

State – of bit (1 or 0).

void LL_TSC_EnableIT ( TSC_TypeDef * tscx , uint32_t interrupts )

Enable interrupts.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_EnableIT

IER MCEIE LL_TSC_EnableIT

Parameters :
void LL_TSC_DisableIT ( TSC_TypeDef * tscx , uint32_t interrupts )

Disable interrupts.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_DisableIT

IER MCEIE LL_TSC_DisableIT

Parameters :
uint32_t LL_TSC_IsEnabledIT ( const TSC_TypeDef * tscx , uint32_t interrupts )

Check if the interrupts are enabled or disabled.

Reference Manual to LL API cross reference (Register Field Functions)

IER EOAIE LL_TSC_IsEnabledIT

IER MCEIE LL_TSC_IsEnabledIT

Parameters :
Return values :

State – of bit (1 or 0).

FLAG management

group TSC_LL_EF_FLAG_management

Functions

void LL_TSC_ClearFlag_EOA ( TSC_TypeDef * tscx )

Clear EOA flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR EOAIC LL_TSC_ClearFlag_EOA

Parameters :

tscx – TSC Instance.

void LL_TSC_ClearFlag_MCE ( TSC_TypeDef * tscx )

Clear MCE flag.

Reference Manual to LL API cross reference (Register Field Functions)

ICR MCEIC LL_TSC_ClearFlag_MCE

Parameters :

tscx – TSC Instance.

void LL_TSC_ClearFlag ( TSC_TypeDef * tscx , uint32_t flags )

Clear flags.

Reference Manual to LL API cross reference (Register Field Functions)

ICR EOAIC LL_TSC_ClearFlag

ICR MCEIC LL_TSC_ClearFlag

Parameters :
uint32_t LL_TSC_IsActiveFlag_EOA ( const TSC_TypeDef * tscx )

Check whether the EOA flag is activate.

Reference Manual to LL API cross reference (Register Field Functions)

ISR EOAF LL_TSC_IsActiveFlag_EOA

Parameters :

tscx – TSC Instance.

Return values :

State – of FLAG sources (1 or 0).

uint32_t LL_TSC_IsActiveFlag_MCE ( const TSC_TypeDef * tscx )

Check whether the MCE flag is activate.

Reference Manual to LL API cross reference (Register Field Functions)

ISR MCEF LL_TSC_IsActiveFlag_MCE

Parameters :

tscx – TSC Instance.

Return values :

State – of FLAG sources (1 or 0).

uint32_t LL_TSC_IsActiveFlag ( const TSC_TypeDef * tscx , uint32_t flags )

Check whether the flags are activate.

Reference Manual to LL API cross reference (Register Field Functions)

ISR EOAF LL_TSC_IsActiveFlag

ISR MCEF LL_TSC_IsActiveFlag

Parameters :
Return values :

State – of flags sources (1 or 0).

Configuration

group TSC_LL_EF_Configuration2

Functions

void LL_TSC_EnableHysteresis ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Enable schmitt trigger hysteresis on a group of IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOHCR Gx_IOy LL_TSC_EnableHysteresis

Parameters :
void LL_TSC_DisableHysteresis ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Disable schmitt trigger hysteresis on a group of IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOHCR Gx_IOy LL_TSC_DisableHysteresis

Parameters :
uint32_t LL_TSC_IsEnabledHysteresis ( const TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Check if the Schmitt trigger hysteresis mode is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

IOHCR Gx_IOy LL_TSC_IsEnabledHysteresis

Parameters :
Return values :

State – of these bits (1 or 0).

void LL_TSC_EnableAnalogSwitch ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Close analog switch on a group of IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOASCR Gx_IOy LL_TSC_EnableAnalogSwitch

Parameters :
void LL_TSC_DisableAnalogSwitch ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Open analog switch on a group of IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOASCR Gx_IOy LL_TSC_DisableAnalogSwitch

Parameters :
uint32_t LL_TSC_IsEnabledAnalogSwitch ( const TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Check if the analog switch on a group of IOs is set or not.

Reference Manual to LL API cross reference (Register Field Functions)

IOASCR Gx_IOy LL_TSC_IsEnabledAnalogSwitch

Parameters :
Return values :

State – of these bits (1 or 0).

void LL_TSC_EnableSampling ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Enable a group of IOs in sampling mode.

Reference Manual to LL API cross reference (Register Field Functions)

IOSCR Gx_IOy LL_TSC_EnableSampling

Parameters :
void LL_TSC_DisableSampling ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Disable a group of sampling IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOSCR Gx_IOy LL_TSC_DisableSampling

Parameters :
uint32_t LL_TSC_IsEnabledSampling ( const TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Check if the sampling IOs is enable or disable.

Reference Manual to LL API cross reference (Register Field Functions)

IOSCR Gx_IOy LL_TSC_IsEnabledSampling

Parameters :
Return values :

State – of these bits (1 or 0).

void LL_TSC_EnableChannel ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Enable a group of IOs in channel mode.

Reference Manual to LL API cross reference (Register Field Functions)

IOCCR Gx_IOy LL_TSC_EnableChannel

Parameters :
void LL_TSC_DisableChannel ( TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Disable a group of channel IOs.

Reference Manual to LL API cross reference (Register Field Functions)

IOCCR Gx_IOy LL_TSC_DisableChannel

Parameters :
uint32_t LL_TSC_IsEnabledChannel ( const TSC_TypeDef * tscx , const uint32_t gx_ioy_mask )

Check if the Channel IOs is enable or disable.

Reference Manual to LL API cross reference (Register Field Functions)

IOCCR Gx_IOy LL_TSC_IsEnabledChannel

Parameters :
Return values :

State – of these bits (1 or 0).

void LL_TSC_EnableGroup ( TSC_TypeDef * tscx , const uint32_t gx_mask )

Enable acquisition groups.

Reference Manual to LL API cross reference (Register Field Functions)

IOGCSR GxE LL_TSC_EnableGroup

Parameters :
void LL_TSC_DisableGroup ( TSC_TypeDef * tscx , const uint32_t gx_mask )

Disable acquisition groups.

Reference Manual to LL API cross reference (Register Field Functions)

IOGCSR GxE LL_TSC_DisableGroup

Parameters :
uint32_t LL_TSC_IsEnabledGroup ( const TSC_TypeDef * tscx , const uint32_t gx_mask )

Check if the group is enable or disable.

Reference Manual to LL API cross reference (Register Field Functions)

IOGCSR Gx_IOy LL_TSC_IsEnabledGroup

Parameters :
Return values :

State – of these bits (1 or 0).

uint32_t LL_TSC_GetGroupStatus ( const TSC_TypeDef * tscx , const uint32_t gx_index )

Get acquisition group status.

Reference Manual to LL API cross reference (Register Field Functions)

IOGCSR GxS LL_TSC_GetGroupStatus

Parameters :
Return values :

State – of group index (1 or 0).

uint32_t LL_TSC_GetGroupAcquisitionCounter ( const TSC_TypeDef * tscx , const uint32_t gx_index )

Get the group acquisition counter.

Reference Manual to LL API cross reference (Register Field Functions)

IOGXCR CNT LL_TSC_GetGroupAcquisitionCounter

Parameters :
Return values :

value – of the group acquisition counter.