BeRTOS
tlv5618.h
Go to the documentation of this file.
00001 
00042 #ifndef DRV_TLV5618_H
00043 #define DRV_TLV5618_H
00044 
00045 #include <cfg/compiler.h>
00046 #include <io/kfile.h>
00047 
00048 typedef struct Tlv5618
00049 {
00050     KFile *ch;
00051     int cs_pin;
00052 } Tlv5618;
00053 
00054 void tlv5618_setOutA(Tlv5618 *ctx, uint16_t val);
00055 void tlv5618_setOutB(Tlv5618 *ctx, uint16_t val);
00056 void tlv5618_setPowerDown(Tlv5618 *ctx);
00057 void tlv5618_init(Tlv5618 *ctx, KFile *ch, int pin);
00058 
00059 #endif /* DRV_TLV5618_H */