> The second value is on ffffffb1 and not on b1, that must be because value
> is defined as __s32, or not? How can I modify this in linux, because I
> think it is not enough to adapt the hiddev.h and set "_u32 value" in the
> hiddev_usage_ref....

> int knx_send( const char report[5], int fd  )
> {
>     struct hiddev_usage_ref uref;
[..]
>             uref.value = *report++;
[..]

report is declared as char*, which is a signed 8-bits value. 0xb1 is thus 
interpreted as -79, which is assigned to uref.value. uref.value is a signed 
32-bits value, and thus -79 is encoded as a 32 bits signed integer, which 
gives 0xffffffb1.

Laurent Pinchart


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to