Mobil_surveillance_system 1
Defines
Bitmanip.h File Reference

Bit manipulations header file. More...

Go to the source code of this file.

Defines

#define BIG_ENDIAN
#define SET_BIT(variable, n)   ((variable) |= (1<<(n)))
 Bit operations.
#define CLEAR_BIT(variable, n)   ((variable) &= ~(1<<(n)))
#define TOGGLE_BIT(variable, n)   ((variable) ^= (1<<(n)))
#define TEST_BIT(variable, n)   ((variable) & (1<<(n)))
#define OR(variable1, variable2)   ((variable1) |= (variable2))
 Boolean operations between two variables.
#define AND(variable1, variable2)   ((variable1) &= (variable2))
#define XOR(variable1, variable2)   ((variable1) ^= (variable2))
#define MULTIPLY_BY_2(variable, n)   ((variable) << (n))
 Shift operations.
#define DIVIDED_BY_2(variable, n)   ((variable) >> (n))
#define GET_LOWER_NIBBLE(variable)   ((variable) &= 0x0F)
 Get the upper and lower nibbles.
#define GET_UPPER_NIBBLE(variable)   ((variable) &= 0xF0)

Detailed Description

Bit manipulations header file.

This file contains basic bit manapulations macros like set, clear, toggle bit .etc

Definition in file Bitmanip.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Defines