AnsweredAssumed Answered

Using USB Hid to send float/double

Question asked by merragmo.miojge on May 29, 2011
Latest reply on Jun 1, 2011 by merragmo.miojge

I just started working with Hid class to communicate via USB with STM32F103VB. I managed to send few bytes of data at once using

UserToPMABufferCopy(Send_Buffer, ENDP1_TXADDR, 5);

where Send_Buffer is declared as

u8 Send_Buffer2[5];

It works fine but is there a simple way to send floats or double variables in a simple way or do I have to make a conversion from seperate bytes to a variable I want to send? I'm real beginner so sorry if this is a silly qustion :)

Thanks in advance.