HID_Enable

Beta Testing discussion on mikroPascal PRO for PIC32.
Post Reply
Author
Message
jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

HID_Enable

#1 Post by jpc » 14 Feb 2012 15:13

i have a question concerning the HID_Enable function , according to the documentation it requires two pointers as parameters and i fail to see what the pointer to the outputbuffer is used for.
I can give another pointer to HID_Write and that seems to work just fine. I even initialise the HID at the moment by a HID_Enable(@readbuf,NIL) and when i want to write i simply use HID_Write(@anybuf) while running the receiver in an interrupt. This all seems to work ok but i would like to have confirmation before using this in some real application.
Au royaume des aveugles, les borgnes sont rois.

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: HID_Enable

#2 Post by janko.kaljevic » 02 Mar 2012 13:25

Hello,

Yes this will work too.
We kept the same library structure because of compatibility.

Best regards.

Post Reply

Return to “mikroPascal PRO for PIC32 Beta Testing”