Qualia  0.2
Macros | Functions
bitarray.h File Reference
#include <qualia/core/common.h>
#include <string.h>
Include dependency graph for bitarray.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BITARRAY_BIT_TO_BYTE(bit)   ((bit) >> 3)
 
#define BITARRAY_BIT_IN_BYTE(bit)   ((bit) & 7)
 

Functions

void arrayBitWrite (uint8_t *dst, int pos, uint8_t bitValue)
 
void arrayBitSet (uint8_t *dst, int pos)
 
void arrayBitClear (uint8_t *dst, int pos)
 
void arrayBitFlip (uint8_t *dst, int pos)
 
uint8_t arrayBitRead (const uint8_t *src, int pos)
 
void arrayBlockWrite (void *dst, const void *src, int dstPos, int srcPos, int length)
 
void arrayBlockCopy (void *dst, const void *src, int pos, int length, int dstByteSize)
 
void initPointerAndPositionForBitOperation (uint8_t **array, int *pos)
 

Macro Definition Documentation

#define BITARRAY_BIT_IN_BYTE (   bit)    ((bit) & 7)
#define BITARRAY_BIT_TO_BYTE (   bit)    ((bit) >> 3)

Function Documentation

void arrayBitClear ( uint8_t *  dst,
int  pos 
)
void arrayBitFlip ( uint8_t *  dst,
int  pos 
)
uint8_t arrayBitRead ( const uint8_t *  src,
int  pos 
)
void arrayBitSet ( uint8_t *  dst,
int  pos 
)
void arrayBitWrite ( uint8_t *  dst,
int  pos,
uint8_t  bitValue 
)
void arrayBlockCopy ( void *  dst,
const void *  src,
int  pos,
int  length,
int  dstByteSize 
)
void arrayBlockWrite ( void *  dst,
const void *  src,
int  dstPos,
int  srcPos,
int  length 
)
void initPointerAndPositionForBitOperation ( uint8_t **  array,
int *  pos 
)