LTPS C++ API
Public Member Functions | List of all members
Dac Class Reference

Class for DAC (Tibbit #14) More...

#include <dac.h>

Public Member Functions

void setVoltage (const char *socket, unsigned int channel, int voltage, DacData &dac)
 Set voltage for channel. More...
 
void setVoltage (const char *socket, unsigned int channel, int voltage)
 Set voltage for channel. More...
 

Detailed Description

Class for DAC (Tibbit #14)

Examples:
tibbit14.cpp.

Member Function Documentation

void Dac::setVoltage ( const char *  socket,
unsigned int  channel,
int  voltage,
DacData dac 
)

Set voltage for channel.

Parameters
socketI2C bus name (eg: s1, s15)
channelInteger number of DAC channel (1...4)
voltageValue in millivolts (-10000...10000)
dacDacData data struct
Examples:
tibbit14.cpp.
void Dac::setVoltage ( const char *  socket,
unsigned int  channel,
int  voltage 
)

Set voltage for channel.

Parameters
socketI2C bus name (eg: s1, s15)
channelInteger number of DAC channel (1...4)
voltageValue in millivolts (-10000...10000)

The documentation for this class was generated from the following file: