ABL electronic PIC12 Personal Computer User Manual


 
mikroC
- C Compiler for Microchip PIC microcontrollers
mikroC
making it simple...
27 6
MikroElektronika:
Development
tools
-
Books
-
Compilers
page
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_Read
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_Write
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();
Hid_Disable