Microchip® Advanced Software Framework

controller.h File Reference
#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().

void controller_init ( U32  fcpu_hz,
U32  fhsb_hz,
U32  fpbb_hz,
U32  fpba_hz 
)

Initialization function of the controller interface.

Parameters
fcpu_hzCPU frequency.
fhsb_hzHSB frequency.
fpbb_hzPBB frequency.
fpba_hzPBA frequency.

References AT42QT1060_DETECT_PIN, at42qt1060_init(), BSP_INTC_IntReg(), controller_detect_int_handler(), cpu_delay_ms(), cpu_ms_2_cy(), cpu_set_timeout(), 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, and twi_init().

Referenced by app_engine().

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  )