Skip to content

Commit

Permalink
si5351A GM 8 port support
Browse files Browse the repository at this point in the history
  • Loading branch information
paulh002 committed Dec 3, 2023
1 parent c7e3bc9 commit 8aea613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions SoapyHifiBerrySettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ SoapyHifiBerry::SoapyHifiBerry(const SoapySDR::Kwargs &args)
if (vfoIQMode == Single || vfoIQMode == IQSingle || vfoIQMode == IQSingleMultiPort)
{
cout << "IQ mode single multiplier = " << multiplier << endl;
pSI5351 = make_unique<Si5351>("/dev/i2c-1", SI5351_BUS_BASE_ADDR);

pSI5351 = make_unique<Si5351>("/dev/i2c-1", SI5351_BUS_BASE_ADDR, SI5351_CLK0, SI5351_CLK1, SI5351_CLK4, SI5351_CLK5);
if (!pSI5351)
{
cout << "No si5351 found" << endl;
Expand Down Expand Up @@ -194,8 +194,8 @@ SoapyHifiBerry::SoapyHifiBerry(const SoapySDR::Kwargs &args)
pSI5351->drive_strength(CLK_VFO_Q, rxDrive);
pSI5351->output_enable(CLK_VFO_I, 1);
pSI5351->output_enable(CLK_VFO_Q, 1);
pSI5351->drive_strength(CLK_VFO_TX_I, rxDrive);
pSI5351->drive_strength(CLK_VFO_TX_Q, rxDrive);
pSI5351->drive_strength(CLK_VFO_TX_I, txDrive);
pSI5351->drive_strength(CLK_VFO_TX_Q, txDrive);
pSI5351->output_enable(CLK_VFO_TX_I, 1);
pSI5351->output_enable(CLK_VFO_TX_Q, 1);
pSI5351->update_status();
Expand Down
2 changes: 1 addition & 1 deletion si5351.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ struct Si5351IntStatus
class Si5351
{
public:
Si5351(const char *i2c_device_filepath, uint8_t i2c_addr = SI5351_BUS_BASE_ADDR, si5351_clock iclock = SI5351_CLK0, si5351_clock qclock = SI5351_CLK1, si5351_clock iclockTx = SI5351_CLK6, si5351_clock qclockTx = SI5351_CLK7);
Si5351(const char *i2c_device_filepath, uint8_t i2c_addr = SI5351_BUS_BASE_ADDR, si5351_clock iclock = SI5351_CLK0, si5351_clock qclock = SI5351_CLK1, si5351_clock iclockTx = SI5351_CLK4, si5351_clock qclockTx = SI5351_CLK5);
~Si5351();
bool init(uint8_t, uint32_t, int32_t, int fileHandle = 0);
void reset(void);
Expand Down

0 comments on commit 8aea613

Please sign in to comment.