21 #include "modules/wltune.h"
24 const char cmd_sfp_help[] =
"SFP utils sfp [tune up|tune down]";
30 bool cmd_sfp_exec(
int argc,
const char *args[])
36 if (wlTuneInfo.tuneword == 65535) {
37 puts(
"Tune word error");
41 if (strcmp(args[0],
"tune") == 0) {
42 if (strcmp(args[1],
"up") == 0) {
43 wltune_set_word(wlTuneInfo.tuneword + 1);
45 if (strcmp(args[1],
"down") == 0)
47 wltune_set_word(wlTuneInfo.tuneword - 1);
49 if (strcmp(args[1],
"set") == 0)
51 int32_t v = atoi(args[2]);
55 if (strcmp(args[1],
"ack") == 0)
61 puts(
"sfp tune [cmd]");
62 puts(
"where cmd is:");
63 puts(
" up - single dac value up");
64 puts(
" down - single dac value down");
65 puts(
" set [#] - set specific dac value (use with care!)");
66 puts(
" ack - acknowledge dac value [otherwise will be set back]");
WhiteRabbit exchange exchanges information between the 2nd LM32 and WhiteRabbit though a small client...