I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
Loading...
Searching...
No Matches
MTCH6102_ex.c File Reference

MTCH6102 Driver extensions. More...

#include "MTCH6102.h"
Include dependency graph for MTCH6102_ex.c:

Functions

FctERR MTCH6102_Set_Mode (const MTCH6102_t *const pCpnt, const MTCH6102_MODE mode)
 Set MTCH6102 gesture decoding.
 
FctERR MTCH6102_Command (const MTCH6102_t *const pCpnt, const MTCH6102_COMMAND cmd)
 Execute MTCH6102 command.
 
FctERR MTCH6102_Set_Active_Period (const MTCH6102_t *const pCpnt, const uint16_t period)
 Set MTCH6102 active period.
 
FctERR MTCH6102_Set_Idle_Period (const MTCH6102_t *const pCpnt, const uint16_t period)
 Set MTCH6102 idle period.
 
FctERR MTCH6102_Get_Active_Period (const MTCH6102_t *const pCpnt, uint16_t *const period)
 Get MTCH6102 Active period.
 
FctERR MTCH6102_Get_Idle_Period (const MTCH6102_t *const pCpnt, uint16_t *const period)
 Get MTCH6102 Idle period.
 
FctERR MTCH6102_Set_Filter (const MTCH6102_t *const pCpnt, const MTCH6102_FILTER_TYPE type, const uint8_t strength, const bool baseline_filter)
 Set MTCH6102 raw acquisition filter.
 
void MTCH6102_INT_GPIO_Init (MTCH6102_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Interrupt GPIO pin init for MTCH6102.
 
bool MTCH6102_INT_GPIO_Get (const MTCH6102_t *const pCpnt)
 Interrupt GPIO pin getter for MTCH6102.
 
void MTCH6102_SYNC_GPIO_Init (MTCH6102_t *const pCpnt, GPIO_TypeDef *const GPIOx, const uint16_t GPIO_Pin, const GPIO_PinState GPIO_Active)
 Synchro GPIO pin init for MTCH6102.
 
bool MTCH6102_SYNC_GPIO_Get (const MTCH6102_t *const pCpnt)
 Synchro GPIO pin getter for MTCH6102.
 

Detailed Description

MTCH6102 Driver extensions.

Author
SMFSW

MTCH6102: Low-Power Projected Capacitive Touch Controller

Function Documentation

◆ MTCH6102_Command()

FctERR MTCH6102_Command ( const MTCH6102_t *const pCpnt,
const MTCH6102_COMMAND cmd )

Execute MTCH6102 command.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]cmd- Command to execute
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MTCH6102_Get_Active_Period()

FctERR MTCH6102_Get_Active_Period ( const MTCH6102_t *const pCpnt,
uint16_t *const period )

Get MTCH6102 Active period.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]period- Pointer to active period result
Returns
FctERR - error code
Here is the call graph for this function:

◆ MTCH6102_Get_Idle_Period()

FctERR MTCH6102_Get_Idle_Period ( const MTCH6102_t *const pCpnt,
uint16_t *const period )

Get MTCH6102 Idle period.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]period- Pointer to idle period result
Returns
FctERR - error code
Here is the call graph for this function:

◆ MTCH6102_INT_GPIO_Get()

bool MTCH6102_INT_GPIO_Get ( const MTCH6102_t *const pCpnt)

Interrupt GPIO pin getter for MTCH6102.

Weak Functions
MTCH6102 Interrupt GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MTCH6102 component
Returns
INT pin state value (0: inactive, 1: active)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MTCH6102_INT_GPIO_Init()

void MTCH6102_INT_GPIO_Init ( MTCH6102_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Interrupt GPIO pin init for MTCH6102.

Weak Functions
MTCH6102 Interrupt GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]GPIOx- INT port
[in]GPIO_Pin- INT pin
[in]GPIO_ActiveINT pin active state
Here is the call graph for this function:

◆ MTCH6102_Set_Active_Period()

FctERR MTCH6102_Set_Active_Period ( const MTCH6102_t *const pCpnt,
const uint16_t period )

Set MTCH6102 active period.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]period- Active period
Returns
FctERR - error code
Here is the call graph for this function:

◆ MTCH6102_Set_Filter()

FctERR MTCH6102_Set_Filter ( const MTCH6102_t *const pCpnt,
const MTCH6102_FILTER_TYPE type,
const uint8_t strength,
const bool baseline_filter )

Set MTCH6102 raw acquisition filter.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]type- Filter type
[in]strength- Filter strength
[in]baseline_filter- 0: Acquisition filter, 1: Baseline filter
Returns
FctERR - error code
Here is the call graph for this function:

◆ MTCH6102_Set_Idle_Period()

FctERR MTCH6102_Set_Idle_Period ( const MTCH6102_t *const pCpnt,
const uint16_t period )

Set MTCH6102 idle period.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]period- Idle period
Returns
FctERR - error code
Here is the call graph for this function:

◆ MTCH6102_Set_Mode()

FctERR MTCH6102_Set_Mode ( const MTCH6102_t *const pCpnt,
const MTCH6102_MODE mode )

Set MTCH6102 gesture decoding.

Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]mode- Gesture decoding mode
Returns
FctERR - error code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ MTCH6102_SYNC_GPIO_Get()

bool MTCH6102_SYNC_GPIO_Get ( const MTCH6102_t *const pCpnt)

Synchro GPIO pin getter for MTCH6102.

Weak Functions
MTCH6102 Synchro GPIO pin getter may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MTCH6102 component
Returns
SYNC pin state value (0: inactive, 1: active)
Here is the call graph for this function:

◆ MTCH6102_SYNC_GPIO_Init()

void MTCH6102_SYNC_GPIO_Init ( MTCH6102_t *const pCpnt,
GPIO_TypeDef *const GPIOx,
const uint16_t GPIO_Pin,
const GPIO_PinState GPIO_Active )

Synchro GPIO pin init for MTCH6102.

Weak Functions
MTCH6102 Synchro GPIO pin init may be user implemented if needed
Parameters
[in]pCpnt- Pointer to MTCH6102 component
[in]GPIOx- SYNC port
[in]GPIO_Pin- SYNC pin
[in]GPIO_ActiveSYNC pin active state
Here is the call graph for this function: