comparison FXAnalyse.c @ 216:72fafb670eaf

Set AD9956 frequency and sweep rate at startup
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Mon, 14 Apr 2014 12:50:21 +0200
parents 11a88d389705
children fefe921a9784
comparison
equal deleted inserted replaced
215:e925664b4b1b 216:72fafb670eaf
494 494
495 // initialize AD9956 dedrift DDS 495 // initialize AD9956 dedrift DDS
496 rv = ad9956_init(&ad9956, host, clock); 496 rv = ad9956_init(&ad9956, host, clock);
497 if (rv) 497 if (rv)
498 logmessage(ERROR, "ad9956 init erorr=%d", -rv); 498 logmessage(ERROR, "ad9956 init erorr=%d", -rv);
499 ad9956_set_w(&ad9956, dedrift.freq0, dedrift.applied);
499 500
500 // ad9912 configuration parameters 501 // ad9912 configuration parameters
501 rv = Ini_GetStringIntoBuffer(configuration, "AD9912", "host", host, sizeof(host)); 502 rv = Ini_GetStringIntoBuffer(configuration, "AD9912", "host", host, sizeof(host));
502 if (! rv) 503 if (! rv)
503 return -1; 504 return -1;