BeRTOS
tc520.h
Go to the documentation of this file.
00001 
00039 #ifndef DRV_TC520_H
00040 #define DRV_TC520_H
00041 
00042 #warning FIXME: This drive is obsolete, you should refactor it.
00043 
00044 #include <drv/ser.h>
00045 #include <cfg/compiler.h>
00046 
00047 typedef uint32_t tc520_data_t;
00048 
00049 /* 17 bit max value */
00050 #define TC520_MAX_VALUE 0x1FFFFUL
00051 
00052 tc520_data_t tc520_read(void);
00053 void tc520_init(Serial *spi_port);
00054 
00055 #endif  /* DRV_TC520_H */