Definition in file controller.h.
#include "compiler.h"
Go to the source code of this file.
Functions | |
Initialization | |
void | controller_init (U32 fcpu_hz, U32 fhsb_hz, U32 fpbb_hz, U32 fpba_hz) |
Initialization function of the controller interface. | |
is_joystick_down | |
Bool | is_joystick_down (void) |
check if down is pressed. | |
is_joystick_left | |
Bool | is_joystick_left (void) |
check if left is pressed. | |
is_joystick_pressed | |
Bool | is_joystick_pressed (void) |
check if pressed is pressed. | |
is_joystick_right | |
Bool | is_joystick_right (void) |
check if right is pressed. | |
is_joystick_up | |
Bool | is_joystick_up (void) |
check if up is pressed. |
void controller_init | ( | U32 | fcpu_hz, | |
U32 | fhsb_hz, | |||
U32 | fpbb_hz, | |||
U32 | fpba_hz | |||
) |
Initialization function of the controller interface.
fcpu_hz | CPU frequency. | |
fhsb_hz | HSB frequency. | |
fpbb_hz | PBB frequency. | |
fpba_hz | PBA frequency. |
Definition at line 69 of file qt1081_controller.c.
References QT60168_SPI_BITS, QT60168_SPI_MASTER_SPEED, and rtc_init_qt().
Referenced by main().
Bool is_joystick_down | ( | void | ) |
check if down is pressed.
Definition at line 53 of file qt1081_controller.c.
References JOYSTICK_STATUS_DOWN, and qwheel_status.
Referenced by is_usb_hid_event().
Bool is_joystick_left | ( | void | ) |
check if left is pressed.
Definition at line 61 of file qt1081_controller.c.
References JOYSTICK_STATUS_LEFT, and qwheel_status.
Referenced by is_usb_hid_event().
Bool is_joystick_pressed | ( | void | ) |
check if pressed is pressed.
Definition at line 65 of file qt1081_controller.c.
References JOYSTICK_STATUS_PRESSED, and qwheel_status.
Referenced by device_audio_task(), and is_usb_hid_event().
Bool is_joystick_right | ( | void | ) |
check if right is pressed.
Definition at line 57 of file qt1081_controller.c.
References JOYSTICK_STATUS_RIGHT, and qwheel_status.
Referenced by is_usb_hid_event().
Bool is_joystick_up | ( | void | ) |
check if up is pressed.
Definition at line 49 of file qt1081_controller.c.
References JOYSTICK_STATUS_UP, and qwheel_status.
Referenced by is_usb_hid_event().