urcc

Location

$CAFE_ROOT/system/src/demo/kpad

Description

This sample program demonstrates URCC functionality using the KPAD library. Using it, you can display onscreen any value that is possible to obtain from the library, and you can edit any value it is possible to modify in the library.

NOTE:
This demo assumes that the URCC will be paired as controller number 1.

Screen Display

SMP.RATE Displays how many registered callbacks of the KPADSetSamplingCallback function are called per second.
BAT Displays the battery level of URCC that is connected as controller number 1
HLD Displays the binary value of the flag set when a digital button is held down (hold).
TRG Displays the binary value of the flag set when a digital button is pressed (trig).
REL Displays the binary value of the flag set when a digital button is released (release).
CHARGE Displays if the URCC's battery is charging or not.
CABLE Displays if the USB cable is plugged to URCC.
CIRCLE CLAMP / CROSS CLAMP Displays the stick clamp mode.

What should be done inside application?

By default, the URCC cannot be connected in the KPAD/WPAD libraries. To enable URCC, the application must call WPADEnableURCC.

Source Code Files

main.h main.c sample.h Contains the application startup and framework source.
urcc.c The main application. This code performs operations with URCC controller values, and performs the CPU processing and rendering that is performed in every video frame.
graphic.h graphic.c The collection of subroutines for simple graphics drawing.

Revision History

2013/04/16 DRAFT


CONFIDENTIAL