Go to the source code of this file.
Defines | |
#define | LTC1663_ADDR(x) (0x20|(x&7)) |
#define | LTC1663_SY (1<<0) |
#define | LTC1663_SD (1<<1) |
#define | LTC1663_BG (1<<2) |
Functions | |
int | ltc1663_SendCommand (const char *device, unsigned char command, unsigned int value) |
#define LTC1663_ADDR | ( | x | ) | (0x20|(x&7)) |
#define LTC1663_BG (1<<2) |
Selects the power supply or the internal bandgap (+2.5V) as reference
Definition at line 27 of file ltc1663.h.
Referenced by kbot_SetProcVCore().
#define LTC1663_SD (1<<1) |
int ltc1663_SendCommand | ( | const char * | device, | |
unsigned char | command, | |||
unsigned int | value | |||
) |
This function send a command to change the output voltage of the LTC1663 DAC. The I²C address used should be one in the range [0x20..0x27] (depending on device) and NOT the SYNC address (0x7E).
device | A String containing the K-Net name of the LTC1663 device. | |
command | Command Word (see LTC1663 documentation) |
value | 10-bit unsigned value [0..1023] |
Definition at line 60 of file ltc1663.c.
References KNET_BUS_ANY, knet_close(), knet_open(), KNET_ORDER_LITTLE, knet_set_order(), and knet_write16().
Referenced by kbot_SetProcVCore().