Linduino  1.3.0
Linear Technology Arduino-Compatible Demonstration Board

Library for LTC6903: 1kHz to 68MHz Serial Port Programmable Oscillator. More...

Detailed Description

Library for LTC6903: 1kHz to 68MHz Serial Port Programmable Oscillator.

Definition in file LTC6903.cpp.

Go to the source code of this file.

Functions

void LTC6903_write (uint8_t cs, uint16_t code)
 Writes 2 bytes. More...
 
uint16_t LTC6903_frequency_to_code (float frequency, uint8_t clk)
 Calculates the code necessary to create the clock frequency. More...
 

Function Documentation

◆ LTC6903_frequency_to_code()

uint16_t LTC6903_frequency_to_code ( float  frequency,
uint8_t  clk 
)

Calculates the code necessary to create the clock frequency.

Returns
the code for the LTC6903
Parameters
frequencyClock frequency in MHz
clkOutput configuration

Definition at line 81 of file LTC6903.cpp.

◆ LTC6903_write()

void LTC6903_write ( uint8_t  cs,
uint16_t  code 
)

Writes 2 bytes.

Returns
1 if successful, 0 if failure
Parameters
csChip Select Pin
codeCode to be written

Definition at line 73 of file LTC6903.cpp.