Defines
utils.h File Reference

Go to the source code of this file.

Defines

#define BITCLR(c, b)   (c &= ~(1<<b))
#define BITREAD(c, b)   (c & (1<<b))
#define BITSET(c, b)   (c |= (1<<b))
#define BITTOG(c, b)   (c ^= (1<<b))
#define false   0
#define true   1

Define Documentation

#define BITCLR (   c,
 
)    (c &= ~(1<<b))

CLEARS the specified bit b inside a c byte/char. (Dspl. bit, then one complement everything then AND with char)

Definition at line 31 of file utils.h.

#define BITREAD (   c,
 
)    (c & (1<<b))

READS the specified bit b inside a c byte/char

Definition at line 22 of file utils.h.

#define BITSET (   c,
 
)    (c |= (1<<b))

SETS the specified bit b inside a c byte/char

Definition at line 26 of file utils.h.

#define BITTOG (   c,
 
)    (c ^= (1<<b))

TOGGLES bit value. (XOR)

Definition at line 35 of file utils.h.

#define false   0

Definition at line 18 of file utils.h.

#define true   1

Definition at line 17 of file utils.h.



cob_3d_mapping_demonstrator
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:46