Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 200

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Function Name
Keyboard Driver Control
int Keyboard_Unload(void);
int Keyboard_Load(void);
Keyboard Reading Functions
int Keyboard_GotKey(void);
int Keyboard_Key(void);
int Keyboard_State(int key);
24.3 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
Keyboard_Unload();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
Keyboard_Load();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
int Keyboard_Unload(void);
int Keyboard_Load(void);
int Keyboard_GotKey(void);
Unload the keyboard driver to save power.
Start the keyboard driver.
Test if a key has been pressed?
Keyboard_Unload() unloads the keyboard driver on the Propeller and frees up a processing core.
Typically, you will make this call before loading the mouse driver or to simply free a core for another
process. Returns 1.
Keyboard_Load() simply loads the keyboard driver into a core on the Propeller. If a keyboard driver is
already running, this function will have no effect. Returns 1.
Keyboard_GotKey() tests if a key is available for reading, returns 1 (key ready) 0 (no key ready).
Table 24.1 – “Keyboard” module API functions listing.
Description
Unloads the keyboard driver on the Propeller.
Loads the keyboard driver on the Propeller.
Tests if a key is queued up.
Reads the next key from the queue.
Tests if a particular key is down.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
200

Related parts for Chameleon-PIC