  | 
        
           Wirepas SDK
           
         | 
        
          
         | 
      
    
  
 
  
  
 
Go to the documentation of this file.
    6 #define BITFIELD_T_SIZE (sizeof(bitfield_t) * 8) 
    8 #define BITFIELD_SET(arr, bit) \ 
    9   ((arr)[ ((bit) / BITFIELD_T_SIZE ) ]) |= (1 << ((bit) % BITFIELD_T_SIZE)) 
   12 #define BITFIELD_CLEAR(arr, bit) \ 
   13   ((arr)[ ((bit) / BITFIELD_T_SIZE ) ]) &= ~(1 << ((bit) % BITFIELD_T_SIZE)) 
   15 #define BITFIELD_GET(arr, bit) \ 
   16   (((arr)[ ((bit) / BITFIELD_T_SIZE) ]) & (1 << ((bit) % BITFIELD_T_SIZE)))