example code using statis library for temperature measurement with LM35 and LM335

Dependencies:   mbed statis

include/util.h

Committer:
greletj
Date:
2012-11-22
Revision:
4:ffc39af07ade
Child:
5:0b3569945178

File content as of revision 4:ffc39af07ade:

/* anciennement sys.h */

typedef void           procedure;
typedef unsigned char  booleen;
typedef void          *pointeur; 
 
#ifndef FALSE
#  define FALSE 0
#endif
#ifndef TRUE
#  define TRUE  1
#endif

#define ALLOUE( nb,type )      (type *) calloc( nb,sizeof( type ) )
#define LIBERE(     var )        if( var ) free( (void *) var )

#define FARALLOUE( nb,type )   (type *) calloc( nb, sizeof( type ) )
#define FARLIBERE(     var )     if( var ) free( (void *) var )

/* util.h */

typedef char           STRING[ 41 ];
#define MAX_CHAR_POOL 4096      /* 4Ko de chaines */

/*****************************************************************************
 *****************************************************************************/
/*
class Delais{
   private :
    long tick,
         tloc;
    int  arme;
   
   public :
     booleen claque( void );
     Delais( long );
};
*/

double convert_position( double data );
double temps( unsigned jour_julien, double heure );


STRING *gen_str( unsigned taille /*= 80*/ );