Usb hid library, Mikroc – ABL electronic PIC Microcontrollers PIC16 User Manual

Page 283

Advertising
background image

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.

Hid_Enable

Hid_Read

Hid_Write

Hid_Disable

MikroElektronika: Development tools - Books - Compilers

275

page

mikroC - C Compiler for Microchip PIC microcontrollers

mikroC

making it simple...

USB HID Library

Library Routines

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);

Hid_Enable

Advertising
This manual is related to the following products: