Re: [Libphidget-devel] First stab at the 888 ik
Status: Alpha
Brought to you by:
jstrohm
|
From: Tom B. <tb...@ba...> - 2003-07-04 05:21:50
|
> The api currently uses a set/clear bit function, but the phidget takes an
> 8 bit value ....
duh. It just occured to me that the _api_ "seems to" show a set/clear bit
function, but it takes a integer values, the code could be modified to
expect/understand an 8 bit value for an index of -1 (or 9) or something
like that. The old code:
buffer[0] = index+(value << 3);
really does seem to be using the bottom three bits to indicate a bit
position and the 4th bit to indicate a 1 or 0 ... so it seems to be bit
oriented.
In case my request for a method to query the phidget's status wasn't
clear... the main rational is that the application may have been started,
then stoped, then restarted. In this case, the phidget may have been
configured by the application and any change by libfidget risks throwing
away the existing config...
I'll try to shutup now until folks with more experience with the phigets
can speak.
-Tom
|