|
I2C_Drivers (ARM) 1.1
SMFSW collection of HAL I2C Drivers for ARM
|
MTCH6102 Driver procedures. More...


Data Structures | |
| struct | MTCH6102_raw_gest |
| struct | MTCH6102_gest |
| struct | MTCH6102_t |
| MTCH6102 user interface struct. More... | |
Macros | |
| #define | MTCH6102_CARTESIAN_CENTERED |
| Define MTCH6102 to use default Cartesian reference centered on pad (using demo board routing) | |
Functions | |
| FctERR | MTCH6102_Init_Sequence (MTCH6102_t *const pCpnt) |
| Initialization Sequence for MTCH6102 peripheral. | |
| FctERR | MTCH6102_Configure (MTCH6102_t *const pCpnt, const bool store_to_nv, const uint16_t active_per, const uint16_t idle_per, const MTCH6102_FILTER_TYPE filter, const uint8_t filter_str, const MTCH6102_FILTER_TYPE base_filter, const uint8_t base_filter_str, const uint8_t rx, const uint8_t tx) |
| Configure MTCH6102 parameters needing configure step. | |
| void | MTCH6102_Set_Grid (MTCH6102_t *const pCpnt) |
| Set MTCH6102 grid min & max values. | |
| FctERR | MTCH6102_Set_Compensation (MTCH6102_t *const pCpnt) |
| Calculates compensation values regarding read values and writes them to MTCH6102. | |
| void | MTCH6102_Set_RxTx_Direction (MTCH6102_t *const pCpnt, const bool rx_dw, const bool tx_dw) |
| Set MTCH6102 Tx Direction. | |
| void | MTCH6102_Set_Centered_Coord (MTCH6102_t *const pCpnt, const bool centered) |
| Set MTCH6102 coordinates reference. | |
| void | MTCH6102_Set_Rotation (MTCH6102_t *const pCpnt, const int16_t angle) |
| Set MTCH6102 coordinates rotation. | |
| FctERR | MTCH6102_Get_MFG_Results (MTCH6102_t *const pCpnt, uint32_t *const res) |
| Get manufacturing test results. | |
| void | MTCH6102_decode_touch_datas (MTCH6102_t *const pCpnt, const MTCH6102_raw_gest *const dat) |
| Decode raw MTCH6102 datas to touch datas. | |
| FctERR | MTCH6102_gesture_to_str (char *const str, const MTCH6102_GESTURE_STATE state) |
| Get gesture string from gesture data. | |
| FctERR | MTCH6102_diag_to_str (char *const str, const MTCH6102_GESTURE_DIAGNOSTIC diag) |
| Get diagnostic string from diagnostic data. | |
| FctERR | MTCH6102_handler (MTCH6102_t *const pCpnt) |
| Handler for MTCH6102 peripheral. | |
| FctERR | MTCH6102_handler_it (MTCH6102_t *const pCpnt) |
| Handler for MTCH6102 peripheral GPIO interrupt. | |
| FctERR | MTCH6102_handler_all (void) |
| Handler for all MTCH6102 peripherals. | |
| FctERR | MTCH6102_handler_it_all (void) |
| Handler for all MTCH6102 peripherals GPIO interrupt. | |
Variables | |
| MTCH6102_t | MTCH6102 [I2C_MTCH6102_NB] |
| MTCH6102 User structure. | |
MTCH6102 Driver procedures.
MTCH6102: Low-Power Projected Capacitive Touch Controller
| #define MTCH6102_CARTESIAN_CENTERED |
Define MTCH6102 to use default Cartesian reference centered on pad (using demo board routing)
| FctERR MTCH6102_Configure | ( | MTCH6102_t *const | pCpnt, |
| const bool | store_to_nv, | ||
| const uint16_t | active_per, | ||
| const uint16_t | idle_per, | ||
| const MTCH6102_FILTER_TYPE | filter, | ||
| const uint8_t | filter_str, | ||
| const MTCH6102_FILTER_TYPE | base_filter, | ||
| const uint8_t | base_filter_str, | ||
| const uint8_t | rx, | ||
| const uint8_t | tx ) |
Configure MTCH6102 parameters needing configure step.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |
| [in] | store_to_nv | - Store to non-volatile memory after configuration |
| [in] | active_per | - Active period value |
| [in] | idle_per | - Idle period value |
| [in] | filter | - Filter type |
| [in] | filter_str | - Filter strength |
| [in] | base_filter | - Base filter type |
| [in] | base_filter_str | - Base filter strength |
| [in] | rx | - Number of RX lines |
| [in] | tx | - Number of TX lines |


| void MTCH6102_decode_touch_datas | ( | MTCH6102_t *const | pCpnt, |
| const MTCH6102_raw_gest *const | dat ) |
Decode raw MTCH6102 datas to touch datas.
| [in] | pCpnt | - Pointer to MTCH6102 component |
| [in] | dat | - Raw touch datas |

| FctERR MTCH6102_diag_to_str | ( | char *const | str, |
| const MTCH6102_GESTURE_DIAGNOSTIC | diag ) |
Get diagnostic string from diagnostic data.
| [in,out] | str | - Pointer to output string |
| [in,out] | diag | - Raw datas |

| FctERR MTCH6102_gesture_to_str | ( | char *const | str, |
| const MTCH6102_GESTURE_STATE | state ) |
Get gesture string from gesture data.
| [in,out] | str | - Pointer to output string |
| [in,out] | state | - Raw datas |

| FctERR MTCH6102_Get_MFG_Results | ( | MTCH6102_t *const | pCpnt, |
| uint32_t *const | res ) |
Get manufacturing test results.
| [in] | pCpnt | - Pointer to MTCH6102 component |
| [in,out] | res | - Channels shorted to GND in least significant 16b ; Channels shorted to Vdd in most significant 16b |

| FctERR MTCH6102_handler | ( | MTCH6102_t *const | pCpnt | ) |
Handler for MTCH6102 peripheral.
| [in] | pCpnt | - Pointer to MTCH6102 component |


| FctERR MTCH6102_handler_all | ( | void | ) |
Handler for all MTCH6102 peripherals.

| FctERR MTCH6102_handler_it | ( | MTCH6102_t *const | pCpnt | ) |
Handler for MTCH6102 peripheral GPIO interrupt.
| [in] | pCpnt | - Pointer to MTCH6102 component |


| FctERR MTCH6102_handler_it_all | ( | void | ) |
Handler for all MTCH6102 peripherals GPIO interrupt.

| FctERR MTCH6102_Init_Sequence | ( | MTCH6102_t *const | pCpnt | ) |
Initialization Sequence for MTCH6102 peripheral.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |


|
inline |
Set MTCH6102 coordinates reference.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |
| [in] | centered | - false: reference in the corner / true: reference in the middle of the pad |

| FctERR MTCH6102_Set_Compensation | ( | MTCH6102_t *const | pCpnt | ) |
Calculates compensation values regarding read values and writes them to MTCH6102.
| [in] | pCpnt | - Pointer to MTCH6102 component |

| void MTCH6102_Set_Grid | ( | MTCH6102_t *const | pCpnt | ) |
Set MTCH6102 grid min & max values.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |

|
inline |
Set MTCH6102 coordinates rotation.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |
| [in] | angle | - Rotation angle (in degrees, counter clockwise) |

|
inline |
Set MTCH6102 Tx Direction.
| [in,out] | pCpnt | - Pointer to MTCH6102 component |
| [in] | rx_dw | - false: rx0 origin left / true: rx0 origin right |
| [in] | tx_dw | - false: tx0 origin up / true: tx0 origin down |

|
extern |
MTCH6102 User structure.