Slider/Wheel Application Programming Interfaces (APIs)
MTOUCH_Slider_InitializeAll
Description: This function initializes all sliders.
Parameter: None
Return: None
MTOUCH_Slider_ServiceAll
Description: This function services all sliders.
Parameter: None
Return: None
MTOUCH_Slider_isInitialized
Description: This function checks whether the specified slider has been initialized and returns true if it is initialized or false otherwise.
Parameter: None
Return: bool
MTOUCH_Slider_isPressed
Description: This function checks whether the specified slider is currently pressed and returns true if it is pressed or false otherwise.
Parameter: None
Return: bool
MTOUCH_Slider_isReburstRequest
Description: This function checks whether the specified slider has requested a reburst and returns true if a reburst is requested or false otherwise.
Parameter: None
Return: bool
MTOUCH_Slider_isPositionChanged
Description: This function checks whether the position of the specified slider has changed.
Parameter: None
Return: bool
MTOUCH_Slider_Status_Get
Description: This function returns the current status of the specified slider.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return:
| Type | Description |
|---|---|
| uint8_t | bit 0-1: indicate slider touch state (0 > initializing, 1: released 2: pressed) bit 2: indicate if position is changed bit 7: indicate if slider needs reburst |
MTOUCH_Slider_Position_Get
Description: This function returns the current position value of the specified slider.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return: uint16_t
MTOUCH_Slider_Threshold_Get
Description: This function returns the threshold value configured for the specified slider.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return: uint16_t
MTOUCH_Slider_Threshold_Set
Description: This function sets the threshold value for the specified slider.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return: uint8_t
MTOUCH_Slider_Deviation_Get
Description: This function returns the slider deviation.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return: uint16_t
MTOUCH_Slider_GroupStatus_Get
Description: This function returns the ORed status for all sliders.
Parameter:
| Type | Description |
|---|---|
| enum mtouch_slider_names sliderName | Enumerator for the configured slider names |
Return:
| Type | Description |
|---|---|
| uint8_t | bit0-1: indicate slider touch state (0 > initializing, 1: released 2: pressed) bit 2: indicate if position is changed bit 7: indicate if slider needs reburst |
MTOUCH_Slider_Reburst_Service
Description: This function processes any pending reburst requests.
Parameter: None
Return: bool
MTOUCH_Slider_SetPositionChangedCallback
Description: This function sets the callback function for slider position changed event.
Parameter: Pointer of the callback function
Return: None
MTOUCH_Slider_SetPressedCallback
Description: This function sets the callback function for slider pressed event.
Parameter: Pointer to the callback function
Return: None
MTOUCH_Slider_SetReleasedCallback
Description: This function sets the callback function for slider released event.
Parameter: Pointer to the callback function
Return: None