Microchip® Advanced Software Framework

uc3c-scope-meter-and-filtering/controller.c File Reference

Controller for AT42QT1060 Touch Sensor.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "board.h"
#include "gpio.h"
#include "twim.h"
#include "controller.h"
#include "at42qt1060.h"
#include "cycle_counter.h"
#include "sysclk.h"
#include "conf_demo.h"
#include "conf_at42qt1060.h"

Data Structures

struct  at42qt1060_data
 

Functions

bool controller_key_fct1 (void)
 Local definition for controller Key 1: Right Button (Input+Noise Signal) More...
 
bool controller_key_fct2 (void)
 Local definition for controller Key 2: Left Button (Input Signal) More...
 
bool controller_key_fct3 (void)
 Local definition for controller Key 3: Up Button (FPU Signal) More...
 
bool controller_key_fct4 (void)
 Local definition for controller Key 4: Down Button (FP Signal) More...
 
bool controller_key_fct5 (void)
 Local definition for controller Key 5: Middle Button (Noise Signal) More...
 
void controller_task (void)
 Refresh the controller. More...
 
void controller_task_init (void)
 Controller Init: More...
 
static void controller_twi_init (void)
 TWI Initialization for QTouch Controller. More...
 
void touch_detect_callback (void)
 Local definition for call detect callback. More...
 

Variables

t_cpu_time joystick_key_sensibility_timer
 
volatile uint8_t signal_selected_display =1
 
struct at42qt1060_data touch_data
 
volatile bool touch_detect = false
 
volatile bool zoom_view = false
 
volatile int32_t zoom_view_id
 

bool controller_key_fct1 ( void  )

Local definition for controller Key 1: Right Button (Input+Noise Signal)

Referenced by controller_task(), and state_machine_task().

bool controller_key_fct2 ( void  )

Local definition for controller Key 2: Left Button (Input Signal)

Referenced by controller_task(), and state_machine_task().

bool controller_key_fct3 ( void  )

Local definition for controller Key 3: Up Button (FPU Signal)

Referenced by controller_task(), and state_machine_task().

bool controller_key_fct4 ( void  )

Local definition for controller Key 4: Down Button (FP Signal)

Referenced by controller_task(), and state_machine_task().

bool controller_key_fct5 ( void  )

Local definition for controller Key 5: Middle Button (Noise Signal)

Referenced by controller_task(), and state_machine_task().

void controller_task ( void  )

Refresh the controller.

Referenced by app_engine(), and main().

void controller_task_init ( void  )
void touch_detect_callback ( void  )

Local definition for call detect callback.

Callback function for a detect event of the touch sensor device.

t_cpu_time joystick_key_sensibility_timer
volatile uint8_t signal_selected_display =1

Referenced by controller_task(), and gui_task().

volatile bool touch_detect = false
volatile int32_t zoom_view_id