/** * \file * * * \author Francesco Sacchi * * \brief Texas instrument TLV5618 DAC driver. * * $WIZ$ module_name = "tlv5618" * $WIZ$ module_depends = "kfile" * $WIZ$ module_hw = "bertos/hw/hw_tlv5618.h" */ #ifndef DRV_TLV5618_H #define DRV_TLV5618_H #include #include typedef struct Tlv5618 { KFile *ch; int cs_pin; } Tlv5618; void tlv5618_setOutA(Tlv5618 *ctx, uint16_t val); void tlv5618_setOutB(Tlv5618 *ctx, uint16_t val); void tlv5618_setPowerDown(Tlv5618 *ctx); void tlv5618_init(Tlv5618 *ctx, KFile *ch, int pin); #endif /* DRV_TLV5618_H */