mikroC

making it simple...

USB HID Library

mikroC - C Compiler for Microchip PIC microcontrollers

Universal Serial Bus (USB) provides a serial bus standard for connecting a wide variety of devices, including computers, cell phones, game consoles, PDAs, etc.

mikroC includes a library for working with human interface devices via Universal Serial Bus. A human interface device or HID is a type of computer device that interacts directly with and takes input from humans, such as the keyboard, mouse, graphics tablet, and the like.

Library Routines

Hid_Enable

Hid_Read

Hid_Write

Hid_Disable

Hid_Enable

Prototype

void Hid_Enable(unsigned *readbuff, unsigned *writebuff);

Description Enables USB HID communication. Parameters readbuff and writebuff are the Read Buffer and the Write Buffer, respectively, which are used for HID communication.

This function needs to be called before using other routines of USB HID Library.

Example

Hid_Enable(&rd, &wr);

 

 

page

 

MikroElektronika: Development tools - Books - Compilers

275