mikroC

mikroC - C Compiler for Microchip PIC microcontrollers

making it simple...

Hid_Read

Prototype

unsigned short Hid_Read(void);

 

 

Returns

Number of characters in Read Buffer received from Host.

 

 

Description

Receives message from host and stores it in the Read Buffer. Function returns the num-

 

ber of characters received in Read Buffer.

 

 

Requires

USB HID needs to be enabled before using this function. See Hid_Enable.

 

 

Example

get = Hid_Read();

 

 

Hid_Write

Prototype

void Hid_Write(unsigned *writebuff, unsigned short len);

Description Function sends data from wrbuff to host. Write Buffer is the same parameter as used in initialization. Parameter len should specify a length of the data to be transmitted.

Requires USB HID needs to be enabled before using this function. See Hid_Enable.

Example

Hid_Write(&wr, len);

Hid_Disable

Prototype

void Hid_Disable(void);

Description Disables USB HID communication.

Requires USB HID needs to be enabled before using this function. See Hid_Enable.

Example Hid_Disable();

page

 

276

MikroElektronika: Development tools - Books - Compilers