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

Go to the source code of this file.

Data Structures

struct  c_bitStack_Privates

Macros

#define _MAX_DATA_STACK_SIZE_   1024
#define _MAX_BITSTACK_INSTANCES_   40

Typedefs

typedef struct
c_bitStack_Privates
bitStack_PrivatesPtr

Functions

int new_bitStack (void)
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)
void clearStack (uint16 bitStackDescriptor)
byte_ptr getDataBuffer (uint16 bitStackDescriptor)
sint32 setDataBuffer (uint16 bitStackDescriptor, byte_ptr data, uint16 dataLength)

Macro Definition Documentation

#define _MAX_BITSTACK_INSTANCES_   40

Definition at line 14 of file bitStack.h.

Referenced by new_bitStack().

#define _MAX_DATA_STACK_SIZE_   1024

Definition at line 13 of file bitStack.h.

Referenced by clearStack(), and setDataBuffer().


Typedef Documentation

Definition at line 19 of file bitStack.h.


Function Documentation

void clearStack ( uint16  bitStackDescriptor)
byte_ptr getDataBuffer ( uint16  bitStackDescriptor)
uint32 getStackSize ( uint16  bitStackDescriptor)
int new_bitStack ( void  )
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 
)
uint32 unstackData ( uint16  bitStackDescriptor,
uint8  nBits 
)