diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-10 22:28:10 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-10 22:28:10 -0400 |
commit | 47d7f8fc5f0170554355396dd0325d8f51340963 (patch) | |
tree | da61607945df25dce020c905332d30ce9d450241 | |
parent | 485578082ce69a488da7c799900eb1c26c28ad94 (diff) | |
download | nodeMCU_rf_source_lmx2487-47d7f8fc5f0170554355396dd0325d8f51340963.tar.gz nodeMCU_rf_source_lmx2487-47d7f8fc5f0170554355396dd0325d8f51340963.zip |
set_lmx2487_board_to_default_state() updates all registers on board
-rw-r--r-- | lmx2487lib.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lmx2487lib.lua b/lmx2487lib.lua index 9250f72..b115d4e 100644 --- a/lmx2487lib.lua +++ b/lmx2487lib.lua @@ -6,8 +6,8 @@ Eugeniy Mikhailov -- there are 8 registers to track for lmx2487 -- labeled R0, R1, ..., R7 in the manual lmx2487_registers = {0, 0, 0, 0, 0, 0, 0, 0} --- if need update set to true updater script will resend this register -lmx2487_need_update = {false, false, false, false, false, false, false, false} +-- if a register needs update set to true, updater script will resend this register +lmx2487_need_update = {true, true, true, true, true, true, true, true} function set_lmx2487register(value, register) -- register labeled 0, 1, 2, ..., 7 @@ -50,6 +50,7 @@ end function set_lmx2487_board_to_default_state() -- this defaults are historic and borrowed from lmx2487lib.tcl -- defaults (set RF freq to 6.83468635e9 GHz and lock it to 10MHz oscillator) + lmx2487_need_update = {true, true, true, true, true, true, true, true} set_lmx2487register(11197502 , 0) set_lmx2487register(4352515 , 1) set_lmx2487register(8560613 , 2) |