This module provides the primitve to send command to an LTC1663 DAC device connected on an I²C Bus. More...
Go to the source code of this file.
Functions | |
int | ltc1663_SendCommand (const char *device, unsigned char command, unsigned int value) |
This module provides the primitve to send command to an LTC1663 DAC device connected on an I²C Bus.
Linear LTC1663 DAC Support
Definition in file ltc1663.c.
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) |
Command Word Format:
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().