My Project
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
bitStack.c File Reference
#include "bitStack.h"
#include <stdio.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

static void swap16 (uint16 *data)
static void swap32 (uint32 *data)
static enum endianness getSystemEndianness (void)
static void resetUnstack (uint16 bitStackDescriptor)
int new_bitStack (void)
void clearStack (uint16 bitStackDescriptor)
sint32 stackData (uint16 bitStackDescriptor, unsigned char *data, uint32 dataLength)
uint32 unstackData (uint16 bitStackDescriptor, uint8 nBits)
void showStack (uint16 bitStackDescriptor)
uint32 getStackSize (uint16 bitStackDescriptor)
void setOutputEndianness (uint16 bitStackDescriptor, enum endianness endianType)
byte_ptr getDataBuffer (uint16 bitStackDescriptor)
sint32 setDataBuffer (uint16 bitStackDescriptor, byte_ptr data, uint16 dataLength)

Variables

enum endianness endianType
bitStack_PrivatesPtr bitStack_Objs [_MAX_BITSTACK_INSTANCES_]
uint16 nBitStackObjs = 0

Function Documentation

void clearStack ( uint16  bitStackDescriptor)
byte_ptr getDataBuffer ( uint16  bitStackDescriptor)
uint32 getStackSize ( uint16  bitStackDescriptor)
enum endianness getSystemEndianness ( void  )
static

Definition at line 84 of file bitStack.c.

References _BIG_ENDIAN_, and _LITTLE_ENDIAN_.

Referenced by new_bitStack().

int new_bitStack ( void  )
void resetUnstack ( uint16  bitStackDescriptor)
static

Definition at line 80 of file bitStack.c.

References _TRUE_, and c_bitStack_Privates::firstUnstak.

Referenced by clearStack().

sint32 setDataBuffer ( uint16  bitStackDescriptor,
byte_ptr  data,
uint16  dataLength 
)
void setOutputEndianness ( uint16  bitStackDescriptor,
enum endianness  endianType 
)
void showStack ( uint16  bitStackDescriptor)

Definition at line 236 of file bitStack.c.

References c_bitStack_Privates::dataStack, and getStackSize().

sint32 stackData ( uint16  bitStackDescriptor,
unsigned char *  data,
uint32  dataLength 
)
void swap16 ( uint16 data)
static

Definition at line 274 of file bitStack.c.

Referenced by stackData(), and unstackData().

void swap32 ( uint32 data)
static

Definition at line 280 of file bitStack.c.

Referenced by stackData(), and unstackData().

uint32 unstackData ( uint16  bitStackDescriptor,
uint8  nBits 
)

Variable Documentation

Definition at line 27 of file bitStack.c.

enum endianness endianType

Definition at line 26 of file bitStack.c.

Referenced by new_bitStack(), setOutputEndianness(), and stackData().

uint16 nBitStackObjs = 0

Definition at line 28 of file bitStack.c.

Referenced by new_bitStack().