Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC5566: Dual Programmable Gain Downconverting Mixer. More...

Detailed Description

Library for LTC5566: Dual Programmable Gain Downconverting Mixer.

Definition in file LTC5566.cpp.

Go to the source code of this file.

Functions

void LTC5566_write (uint8_t cs, uint16_t tx, uint16_t *rx)
 Writes to the LTC5566 twice and reads back the last two bytes to make sure the LTC5566 was loaded properly. More...
 
uint8_t LTC5566_dupl_settings ()
 Function to duplicate settings for both LTC5566 channels. More...
 
uint16_t LTC5566_diff_settings ()
 Function to apply unique settings for each LTC5566 channel. More...
 
uint8_t LTC5566_get_power_mode (char *prompt)
 Function to get data from user for power mode. More...
 
uint8_t LTC5566_get_tune_mode (char *prompt)
 Function to get data from user for RF input tune mode. More...
 
uint8_t LTC5566_get_att (char *prompt)
 Function to get data from user for IF attenuation. More...
 
void LTC5566_decode_output (uint8_t output_register)
 Decode the register value read from the LTC5555. More...
 

Variables

uint8_t mixer_1_value
 
uint8_t mixer_2_value
 
uint16_t whole_register
 
uint16_t full_output
 
uint8_t mixer_1_output
 
uint8_t mixer_2_output
 

Function Documentation

◆ LTC5566_decode_output()

void LTC5566_decode_output ( uint8_t  output)

Decode the register value read from the LTC5555.

Returns
void
Parameters
output_registerRaw output from the LTC5566 to decode

Definition at line 372 of file LTC5566.cpp.

◆ LTC5566_diff_settings()

uint16_t LTC5566_diff_settings ( )

Function to apply unique settings for each LTC5566 channel.

Returns
Readback after writing different settings for each channel

Definition at line 143 of file LTC5566.cpp.

◆ LTC5566_dupl_settings()

uint8_t LTC5566_dupl_settings ( )

Function to duplicate settings for both LTC5566 channels.

Returns
Readback after writing duplicate settings to both channels

Definition at line 95 of file LTC5566.cpp.

◆ LTC5566_get_att()

uint8_t LTC5566_get_att ( char *  prompt)

Function to get data from user for IF attenuation.

Returns
uint8_t
Parameters
promptPrompt to ask for the desired attenuation

Definition at line 319 of file LTC5566.cpp.

◆ LTC5566_get_power_mode()

uint8_t LTC5566_get_power_mode ( char *  prompt)

Function to get data from user for power mode.

Returns
uint8_t
Parameters
promptPrompt to ask for the desired power mode

Definition at line 221 of file LTC5566.cpp.

◆ LTC5566_get_tune_mode()

uint8_t LTC5566_get_tune_mode ( char *  prompt)

Function to get data from user for RF input tune mode.

Returns
uint8_t
Parameters
promptPrompt to ask for the desired RF tune mode

Definition at line 265 of file LTC5566.cpp.

◆ LTC5566_write()

void LTC5566_write ( uint8_t  cs,
uint16_t  tx,
uint16_t *  rx 
)

Writes to the LTC5566 twice and reads back the last two bytes to make sure the LTC5566 was loaded properly.

Returns
void
Parameters
txChip Select pin
rxWord to be transmitted Output pointer

Definition at line 88 of file LTC5566.cpp.

Variable Documentation

◆ full_output

uint16_t full_output

Definition at line 78 of file LTC5566.cpp.

◆ mixer_1_output

uint8_t mixer_1_output

Definition at line 81 of file LTC5566.cpp.

◆ mixer_1_value

uint8_t mixer_1_value

Definition at line 69 of file LTC5566.cpp.

◆ mixer_2_output

uint8_t mixer_2_output

Definition at line 84 of file LTC5566.cpp.

◆ mixer_2_value

uint8_t mixer_2_value

Definition at line 72 of file LTC5566.cpp.

◆ whole_register

uint16_t whole_register

Definition at line 75 of file LTC5566.cpp.