Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

bits.c File Reference

#include "..\includes\defines.h"
#include "..\includes\canapi.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

int _stdcall rightshifteverything (unsigned char *from, int bitdistance, int bitsize)
int _stdcall setatbit (unsigned char *structure, unsigned char *toset, int bitstart, int bitsize)
int _stdcall getatbit (unsigned char *structure, unsigned char *toset, int bitstart, int bitsize)


Function Documentation

int _stdcall getatbit unsigned char *  structure,
unsigned char *  toset,
int  bitstart,
int  bitsize
 

Definition at line 159 of file bits.c.

References _GETBIT, _GETBYTE, maskMS, and rightshifteverything().

Referenced by can_getfield().

int _stdcall rightshifteverything unsigned char *  from,
int  bitdistance,
int  bitsize
 

Definition at line 35 of file bits.c.

References maskLS.

Referenced by getatbit(), and setatbit().

int _stdcall setatbit unsigned char *  structure,
unsigned char *  toset,
int  bitstart,
int  bitsize
 

Definition at line 108 of file bits.c.

References _GETBIT, _GETBYTE, maskLS, maskMS, and rightshifteverything().

Referenced by can_can2raw().


Generated on Wed Feb 22 13:31:27 2006 for CANapi by  doxygen 1.4.4