![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Library for LTC2756 Serial 18-Bit SoftSpan IOUT DAC. More...
Library for LTC2756 Serial 18-Bit SoftSpan IOUT DAC.
Definition in file LTC2756.cpp.
Go to the source code of this file.
Functions | |
void | LTC2756_transfer_4bytes (uint8_t cs, uint8_t *tx, uint8_t *rx) |
Transfers four bytes to the LTC2756. More... | |
uint32_t | LTC2756_voltage_to_code (float dac_voltage, float LTC2756_lsb, int32_t LTC2756_offset) |
Converts voltage to code. More... | |
void | LTC2756_calibrate (uint32_t zero_code, uint32_t fs_code, float zero_voltage, float fs_voltage, float *LTC2756_lsb, int32_t *LTC2756_offset) |
Calculate the LTC2756 offset and LSB voltage given two measured voltages and their corresponding codes. More... | |
void LTC2756_calibrate | ( | uint32_t | zero_code, |
uint32_t | fs_code, | ||
float | zero_voltage, | ||
float | fs_voltage, | ||
float * | LTC2756_lsb, | ||
int32_t * | LTC2756_offset | ||
) |
Calculate the LTC2756 offset and LSB voltage given two measured voltages and their corresponding codes.
Definition at line 97 of file LTC2756.cpp.
void LTC2756_transfer_4bytes | ( | uint8_t | cs, |
uint8_t * | tx, | ||
uint8_t * | rx | ||
) |
uint32_t LTC2756_voltage_to_code | ( | float | dac_voltage, |
float | LTC2756_lsb, | ||
int32_t | LTC2756_offset | ||
) |