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

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
int Mouse_Unload(void);
Mouse Reading
int Mouse_Read(gid_event_ptr mouse);
25.3 API Functional Declarations
The following lists each function, a description, comments, and example usage of the function.
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
Mouse_Load();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
Mouse_Load();
_________________________________________________________________________________________________
Function Prototype:
Description:
Example(s):
gid_event mouse;
Mouse_Read(&mouse);
// test bit 3, left button?
if (mouse.buttons & (0b01000))
{
// do stuff…
} // end if
int Mouse_Load(void);
int Mouse_Unload(void);
int Mouse_Read(gid_event_ptr mouse);
Load the mouse driver.
Load the mouse driver.
Read the mouse position and test if left button is down.
function has no effect. Returns 1.
when you want to load the keyboard driver. Returns 1.
events and thus the data is in delta format. You send a pointer to a gid_event structure and the function
will write the latest mouse deltas and button states into the structure. Returns 1.
Mouse_Load() loads the mouse driver up on a free Propeller core. If the driver is already loaded this
Mouse_Unload() unloads the mouse driver freeing a core on the Propeller. Typically, you will do this
Mouse_Read(…) reads the current mouse event from the driver. In this case, it only reads “relative”
Unloads the mouse driver.
Reads the mouse message.
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
203

Related parts for Chameleon-PIC