|
| UnitGP8413 (const uint8_t addr=DEFAULT_ADDRESS) |
|
virtual bool | begin () override |
|
|
config_t | config () |
| Gets the configration.
|
|
void | config (const config_t &cfg) |
| Set the configration.
|
|
|
gp8413::Output | range (const gp8413::Channel channel) const |
| Gets the inner range.
|
|
float | maximumVoltage (const gp8413::Channel channel) const |
| Get the maximum voltage of the channel.
|
|
bool | writeOutputRange (const gp8413::Output range0, const gp8413::Output range1) |
| Write the output range.
|
|
|
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, std::nullptr_t >::type = nullptr> |
bool | writeVoltage (const gp8413::Channel channel, const T mv) |
| Output the voltage.
|
|
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, std::nullptr_t >::type = nullptr> |
bool | writeChannel0Voltage (const T mv) |
| Output the voltage(mV) to channel 0.
|
|
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, std::nullptr_t >::type = nullptr> |
bool | writeChannel1Voltage (const T mv) |
| Output the voltage(mV) to channel 1.
|
|
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, std::nullptr_t >::type = nullptr> |
bool | writeBothVoltage (const T mv0, const T mv1) |
| Output the voltage to both channel.
|
|
template<typename T , typename std::enable_if< std::is_floating_point< T >::value, std::nullptr_t >::type = nullptr> |
bool | writeBothVoltage (const T mv) |
| Output the voltage to both channel.
|
|
|
bool | writeVoltage (const gp8413::Channel channel, const uint16_t raw) |
| Output the raw value.
|
|
bool | writeChannel0Voltage (const uint16_t raw) |
| Output the raw value to channel 0.
|
|
bool | writeChannel1Voltage (const uint16_t raw) |
| Output the raw value to channel 1.
|
|
bool | writeBothVoltage (const uint16_t raw0, const uint16_t raw1) |
| Output the raw value to both channel.
|
|
bool | writeBothVoltage (const uint16_t raw) |
| Output the raw value to both channel.
|
|
|
- Note
- The GP8413 supports storing voltage data in the chip to ensure that the voltage output state remains
-
in the corresponding state after power-down or start-up.
|
bool | storeBothVoltage () |
| Store the current output voltage to the chip.
|
|
Digital-to-analog signal conversion unit.