#include "compiler.h"
Macros | |
#define | CONTROLLER_LONG_PRESS_TIME_MS 3000 |
Functions | |
void | controller_init (int cpu_hz, int hsb_hz, int pba_hz, int pbb_hz) |
bool | controller_key_back (void) |
bool | controller_key_fct1 (void) |
bool | controller_key_fct1_pressed (void) |
bool | controller_key_fct2 (void) |
bool | controller_key_fct2_pressed (void) |
bool | controller_key_fct3 (void) |
bool | controller_key_fct3_pressed (void) |
bool | controller_key_pressed (void) |
bool | controller_key_released (void) |
bool | controller_key_reset (void) |
void | controller_reset (void) |
void | controller_task (void) |
bool | controller_wheel_left (int wheel_inc) |
bool | controller_wheel_pressed (void) |
bool | controller_wheel_right (int wheel_inc) |
#define CONTROLLER_LONG_PRESS_TIME_MS 3000 |
Referenced by update_controller_state().
void controller_init | ( | int | cpu_hz, |
int | hsb_hz, | ||
int | pba_hz, | ||
int | pbb_hz | ||
) |
References controller_cpu_hz, cpu_hz, qt60168_init(), qt60168_resources_init(), QT60168_TOUCH_NUMBER_OF_SENSORS, TOUCH_IDLE, and touch_states.
Referenced by main().
bool controller_key_back | ( | void | ) |
References CLEAR_RELEASED_STATE, controller_state, and STATE_BACK_RELEASED.
Referenced by state_machine_task().
bool controller_key_fct1 | ( | void | ) |
References CLEAR_RELEASED_STATE, controller_state, and STATE_FCT1_RELEASED.
Referenced by state_machine_task().
bool controller_key_fct1_pressed | ( | void | ) |
References controller_state, and STATE_FCT1_PRESSED.
bool controller_key_fct2 | ( | void | ) |
References CLEAR_RELEASED_STATE, controller_state, and STATE_FCT2_RELEASED.
Referenced by state_machine_task().
bool controller_key_fct2_pressed | ( | void | ) |
References controller_state, and STATE_FCT2_PRESSED.
bool controller_key_fct3 | ( | void | ) |
References CLEAR_RELEASED_STATE, controller_state, and STATE_FCT3_RELEASED.
Referenced by state_machine_task().
bool controller_key_fct3_pressed | ( | void | ) |
References controller_state, and STATE_FCT3_PRESSED.
Referenced by state_machine_task().
bool controller_key_pressed | ( | void | ) |
References controller_state, and STATE_IDLE.
bool controller_key_released | ( | void | ) |
References controller_state, STATE_BACK_RELEASED, STATE_FCT1_RELEASED, STATE_FCT2_RELEASED, and STATE_FCT3_RELEASED.
bool controller_key_reset | ( | void | ) |
References controller_state, and STATE_BACK_LONG_PRESS.
Referenced by state_machine_task().
void controller_reset | ( | void | ) |
References controller_state, STATE_IDLE, and wheel_step_counter.
Referenced by state_machine_filter(), state_machine_signal(), state_machine_source(), and state_machine_task().
void controller_task | ( | void | ) |
References qt60168_is_key_pressed(), QT60168_TOUCH_NUMBER_OF_SENSORS, TOUCH_IDLE, TOUCH_PRESS, TOUCH_RELEASE, touch_states, and update_controller_state().
Referenced by main().
bool controller_wheel_left | ( | int | wheel_inc | ) |
References controller_state, STATE_WHEEL_LEFT, and wheel_step_counter.
Referenced by state_machine_filter(), state_machine_idle(), state_machine_signal(), and state_machine_source().
bool controller_wheel_pressed | ( | void | ) |
References controller_state, STATE_WHEEL_LEFT, and STATE_WHEEL_RIGHT.
bool controller_wheel_right | ( | int | wheel_inc | ) |
References controller_state, STATE_WHEEL_RIGHT, and wheel_step_counter.
Referenced by state_machine_filter(), state_machine_idle(), state_machine_signal(), and state_machine_source().