Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC2756 Serial 18-Bit SoftSpan IOUT DAC. More...

Detailed Description

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...
 

Function Documentation

◆ LTC2756_calibrate()

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.

Returns
void

Definition at line 97 of file LTC2756.cpp.

◆ LTC2756_transfer_4bytes()

void LTC2756_transfer_4bytes ( uint8_t  cs,
uint8_t *  tx,
uint8_t *  rx 
)

Transfers four bytes to the LTC2756.

Returns
void

Definition at line 74 of file LTC2756.cpp.

◆ LTC2756_voltage_to_code()

uint32_t LTC2756_voltage_to_code ( float  dac_voltage,
float  LTC2756_lsb,
int32_t  LTC2756_offset 
)

Converts voltage to code.

Returns
the calculated code

Definition at line 81 of file LTC2756.cpp.