#include "compiler.h"
Functions | |
void | controller_clear (void) |
Reset the key state. More... | |
Constructor/Destructor | |
void | controller_init (U32 fcpu_hz, U32 fhsb_hz, U32 fpbb_hz, U32 fpba_hz) |
Initialization function of the controller interface. More... | |
void | controller_task (void) |
Refresh the controller. More... | |
void | controller_shutdown (void) |
Shutdown the controller. More... | |
Navigation view | |
bool | controller_inquiry (void) |
bool | controller_select (void) |
bool | controller_connect (void) |
bool | controller_send (void) |
void controller_clear | ( | void | ) |
Reset the key state.
bool controller_connect | ( | void | ) |
References at42qt1060_data::detect_status, and touch_data.
Referenced by app_engine().
Initialization function of the controller interface.
fcpu_hz | CPU frequency. |
fhsb_hz | HSB frequency. |
fpbb_hz | PBB frequency. |
fpba_hz | PBA frequency. |
References AT42QT1060_DETECT_PIN, at42qt1060_init(), at42qt1060_register_int(), BSP_INTC_IntReg(), controller_detect_int_handler(), cpu_delay_ms(), cpu_ms_2_cy(), cpu_set_timeout(), delay_ms, Disable_global_interrupt, Enable_global_interrupt, gpio_clear_pin_interrupt_flag(), gpio_enable_pin_interrupt(), GPIO_FALLING_EDGE, JOYSTICK_KEY_DEBOUNCE_MS, static_fcpu_hz, touch_detect_callback, and twi_init().
Referenced by app_engine(), and main().
bool controller_inquiry | ( | void | ) |
References at42qt1060_data::detect_status, and touch_data.
Referenced by app_engine().
bool controller_select | ( | void | ) |
References at42qt1060_data::detect_status, and touch_data.
Referenced by app_engine().
bool controller_send | ( | void | ) |
References at42qt1060_data::detect_status, and touch_data.
Referenced by app_engine().
void controller_shutdown | ( | void | ) |
Shutdown the controller.
void controller_task | ( | void | ) |
Refresh the controller.
References AT42QT1060_DETECTION_STATUS, AT42QT1060_INPUT_PORT_STATUS, at42qt1060_read_reg(), controller_key_fct1(), controller_key_fct2(), controller_key_fct3(), controller_key_fct4(), controller_key_fct5(), at42qt1060_data::detect_status, signal_selected_display, touch_data, and touch_detect.
Referenced by app_engine(), and main().