Re: [Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Wayne Burdick
Hi Tom, To test the value of bit 0 in an 8-bit variable X in C, you can use the bitwise AND operator (&): if( X & 0b1 ) do_something() 0b1 is a binary constant that's the equivalent of a byte with only bit 0 set. It is used by the & operator as a "mask". If bit 0 of byte X is al

Re: [Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Amateur Radio Operator N5GE
On Tue, 2 Nov 2010 07:32:50 -0700 (PDT), Stan wrote: Thanks to both of you guys! I see the DS and IC commands and had considered using the IC command last night but I'm embarased to say that I don't know how to get the bits out of a byte. Is there a function in the C# language to do that? Or do

Re: [Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Wayne Burdick
"DS" command byte 2, bit 2 reflects the NR icon state, which will normally be the MAIN NR but is SUB NR in BSET mode with the sub on. "IC" command reports sub receiver NR status in byte e, bit 2. 73, Wayne N6KR On Nov 2, 2010, at 7:33 AM, Amateur Radio Operator N5GE wrote: > On Tue, 02 Nov 20

Re: [Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Amateur Radio Operator N5GE
On Tue, 02 Nov 2010 09:04:04 -0500, you wrote: More confusion... I used the K3 utility to try the command nr; and it always returns nr0; regardless of the NR setting. How do I get the state of the NR >I know I'm missing it somewhere in the document, but I can't find a >command that sets the

Re: [Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Stan Gibbs
In K31 mode, the "DS" command returns the state of main NR in bit 2. (Page 8) Radio Amateur N5GE wrote: > > How do I query the K3 for the state of the NR? > - 73, Stan - KR7C -- View this message in context: http://elecraft.365791.n2.nabble.com/K3-Programmer-s-Reference-Noise-Reductio

[Elecraft] K3 Programmer's Reference - Noise Reduction

2010-11-02 Thread Amateur Radio Operator N5GE
I know I'm missing it somewhere in the document, but I can't find a command that sets the NR except for swt34; which does not trigger a reply from the rig. How do I query the K3 for the state of the NR? Tom Radio Amateur N5GE __ Elecraf