next up previous 623
Next: SCULIB_BOLDECODE - decode a bolometer ID into ADC and channel number
Up: Library APIs
Previous: SCULIB_BITAND - Calculate the bitwise AND of two bytes


SCULIB_BITTEST - Test whether a bit is on

Description:
Tests whether specified bit is turned on or not. Returns TRUE if it is on, false otherwise.

Invocation:
ISON = SCULIB_BITTEST( VAL, BIT )

Arguments:

VAL = BYTE (Given)
The byte to be tested
BIT = INT (Given)
The bit to be tested

Returned Value:

SCULIB_BITTEST = LOGICAL
True if specified bit is turned on.

Copyright
Copyright ©1995,1996,1997,1998,1999 Particle Physics and Astronomy Research Council. All Rights Reserved.


next up previous 623
Next: SCULIB_BOLDECODE - decode a bolometer ID into ADC and channel number
Up: Library APIs
Previous: SCULIB_BITAND - Calculate the bitwise AND of two bytes

SURF Programming Interface
Starlink System Note 72
Tim Jenness, John F. Lightfoot
Joint Astronomy Centre, Hilo, Hawaii
10 July 2000
E-mail:ussc@star.rl.ac.uk

Copyright © 2008 Science and Technology Facilities Council