Surface Application Programming Interfaces (APIs)

Last modified by Microchip on 2026/03/24 11:57

MTOUCH_Surface_Contact_Status_Get

uint8_t  MTOUCH_Surface_Contact_Status_Get(uint8_t contact );

Description: Gets the surface contact status

Parameter: 

TypeDescription
uint8_tContact

Return: uint8_t

MTOUCH_Surface_Position_Get

uint16_t MTOUCH_Surface_Position_Get(uint8_t ver_or_hor, uint8_t contact );

Description: Gets the surface position whether vertical or horizontal

Parameter: 

TypeDescription
uint8_tVertical or horizontal position
uint8_tContact

Return: uint16_t 

MTOUCH_Surface_Status_Get

uint8_t  MTOUCH_Surface_Status_Get(void);

Description: Gets the status of the surface

Parameter: None

Return: uint8_t

uint8_t  MTOUCH_Surface_Resolution_Get(void);

uint8_t  MTOUCH_Surface_Resolution_Get(void);

Description: Gets the resolution of the surface

Parameter: None

Return: uint8_t

MTOUCH_Surface_Deadband_Get

uint8_t  MTOUCH_Surface_Deadband_Get(void);

Description: Gets the deadband of the surface

Parameter: None

Return: uint8_t

MTOUCH_Surface_Resolution_Set

void     MTOUCH_Surface_Resolution_Set(uint8_t resol);

Description: Sets the surface resolution

Parameter:

Type Description
uint8_tresol

Return: None

MTOUCH_Surface_Deadband_Set

void     MTOUCH_Surface_Deadband_Set(uint8_t db);

Description: Sets the surface deadband percentage

Parameter:

Type Description
uint8_tdb

Return: None

MTOUCH_Surface_InitializeAll

void     MTOUCH_Surface_InitializeAll(void);

Description: Initializes the surface module

Parameter: None

Return: None

MTOUCH_Surface_ServiceAll

void     MTOUCH_Surface_ServiceAll(void);

Description: Checks whether there is touch detected on the surface

It also filters, computes the horizontal and vertical coordinates of touch and confirms the touch detection.

Parameter: None

Return: None

Back to Top