/**************************************************************************************
** Basis.h
*/
#ifndef _BASIS_H
#define _BASIS_H

//#include "config.h"         // config file


#define true  1
#define false 0

#define BIT0  0x01
#define BIT1  0x02
#define BIT2  0x04
#define BIT3  0x08
#define BIT4  0x10
#define BIT5  0x20
#define BIT6  0x40
#define BIT7  0x80

//#define byte unsigned char

#define Taster_ON      0x02  // toggle switch 

#ifdef BA_EHEX
                            // Hex aufbereitung
void edit_hex( unsigned char anz, unsigned long wert, char *ziel );
#endif 

#ifdef BA_ATOI                          
                            // ascii to integer
long a_to_i( char *quelle, unsigned char anzahl); 
#endif

#ifdef BA_E99
                            // integer to ascii
void edit99( long wert, char *ziel, unsigned char stellen );
#endif

#ifdef BA_PRUEF
                            // pruefzeichen aus ascii werten 0-9 
unsigned char berechne_PZ( char *s, unsigned char len );
#endif

#endif //_BASIS_H
