Core2 for AWS IoT EduKit BSP 1.5.1
Data Fields
Button_t Struct Reference

The member defintions of the virtual button data. More...

#include <button.h>

Data Fields

uint16_t x
 Virtual button touch starting point in the X-coordinate plane. More...
 
uint16_t y
 Virtual button touch starting point in the Y-coordinate plane. More...
 
uint16_t w
 Virtual button touched width from the starting point in the X-coordinate plane. More...
 
uint16_t h
 Virtual button touched height from the starting point in the y-coordinate plane. More...
 
uint8_t value
 Current virtual button touched state. More...
 
uint8_t last_value
 Previous virtual button touched state. More...
 
uint32_t last_press_time
 FreeRTOS ticks when virtual button was last touched. More...
 
uint32_t long_press_time
 Number of FreeRTOS ticks to elapse to consider holding the touch button a long press. More...
 
uint8_t state
 The button press event. More...
 
struct _Button_t * next
 Pointer to the next virtual button. More...
 

Detailed Description

The member defintions of the virtual button data.

This structure can be used to define virtual buttons bounded by rectangular areas of the touch screen.

Field Documentation

◆ x

uint16_t Button_t::x

Virtual button touch starting point in the X-coordinate plane.

◆ y

uint16_t Button_t::y

Virtual button touch starting point in the Y-coordinate plane.

◆ w

uint16_t Button_t::w

Virtual button touched width from the starting point in the X-coordinate plane.

◆ h

uint16_t Button_t::h

Virtual button touched height from the starting point in the y-coordinate plane.

◆ value

uint8_t Button_t::value

Current virtual button touched state.

◆ last_value

uint8_t Button_t::last_value

Previous virtual button touched state.

◆ last_press_time

uint32_t Button_t::last_press_time

FreeRTOS ticks when virtual button was last touched.

◆ long_press_time

uint32_t Button_t::long_press_time

Number of FreeRTOS ticks to elapse to consider holding the touch button a long press.

◆ state

uint8_t Button_t::state

The button press event.

◆ next

struct _Button_t* Button_t::next

Pointer to the next virtual button.


The documentation for this struct was generated from the following file: