¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Right-Left Rule Examples:

 

I presented the Right-Left Rule in the C Programming Guide book (1982) and there have been lots of examples written since then. This is a list of example you might use to test your understanding of the Rule, including some illegal data definitions:

Here are some legal and illegal examples:

Jack, W8TEE


int i; // an int
int *p; // an int pointer (ptr to an int)
int a[]; // an array of ints
int f(); // a function returning an int
int **pp; // a pointer to an int pointer (ptr to a ptr to an int)
int (*pa)[]; // a pointer to an array of ints
int (*pf)(); // a pointer to a function returning an int
int *ap[]; // an array of int pointers (array of ptrs to ints)
int aa[][]; // an array of arrays of ints
int af[](); // an array of functions returning an int (ILLEGAL)
int *fp(); // a function returning an int pointer
int fa()[]; // a function returning an array of ints (ILLEGAL)
int ff()(); // a function returning a function returning an int (ILLEGAL)
int ***ppp; // a pointer to a pointer to an int pointer
int (**ppa)[]; // a pointer to a pointer to an array of ints
int (**ppf)(); // a pointer to a pointer to a function returning an int
int *(*pap)[]; // a pointer to an array of int pointers
int (*paa)[][]; // a pointer to an array of arrays of ints
int (*paf)[](); // a pointer to a an array of functions returning an int (ILLEGAL)
int *(*pfp)(); // a pointer to a function returning an int pointer
int (*pfa)()[]; // a pointer to a function returning an array of ints (ILLEGAL)
int (*pff)()(); // a pointer to a function returning a function returning an int (ILLEGAL)
int **app[]; // an array of pointers to int pointers
int (*apa[])[]; // an array of pointers to arrays of ints
int (*apf[])(); // an array of pointers to functions returning an int
int *aap[][]; // an array of arrays of int pointers
int aaa[][][]; // an array of arrays of arrays of ints
int aaf[][](); // an array of arrays of functions returning an int (ILLEGAL)
int *afp[](); // an array of functions returning int pointers (ILLEGAL)
int afa[]()[]; // an array of functions returning an array of ints (ILLEGAL)
int aff[]()(); // an array of functions returning functions returning an int (ILLEGAL)
int **fpp(); // a function returning a pointer to an int pointer
int (*fpa())[]; // a function returning a pointer to an array of ints
int (*fpf())(); // a function returning a pointer to a function returning an int
int *fap()[]; // a function returning an array of int pointers (ILLEGAL)
int faa()[][]; // a function returning an array of arrays of ints (ILLEGAL)
int faf()[](); // a function returning an array of functions returning an int (ILLEGAL)
int *ffp()(); // a function returning a function returning an int pointer (ILLEGAL)



--
Jack, W8TEE


Re: V12 compiling error

 

On 2025-02-11 10:01, K9HZ wrote:
No problem¡­ if you have amplified speakers or a stereo amp
(audiophile or music)¡­ I encourage you to use it.
*** This reminds me of a project I've got on the back-burner. I got an
amp that should be relatively decent. And a Boston Acoustics speaker
mounted on the wall.

Four HF rigs on the desk. I switch the antenna with a manual switch.

I'd like to build a gadget to switch both the antenna and the speaker & amp
to the desired HF rig. I've got a little card for switching antennas - with
four beefy relays. Bought it from an Eastern European vendor on Ebay.

- Jerry, KF6VB


Re: V12 compiling error

 

¿ªÔÆÌåÓý

No problem¡­ if you have amplified speakers or a stereo amp (audiophile or music)¡­ I encourage you to use it.

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of Tim via groups.io
Sent: Tuesday, February 11, 2025 11:53 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] V12 compiling error

?

THX Dr. Bill

I was using headphones, only hear some clicking regular spaced noise, very suspicious Hi.

Tim?

?


Re: V12 compiling error

 

THX Dr. Bill
I was using headphones, only hear some clicking regular spaced noise, very suspicious Hi.
Tim?
?


Re: V12 compiling error

 

¿ªÔÆÌåÓý

Just so you are not misled here¡­ the audio out from the main board needs to go to an external audio amp to hear stuff from a speaker.? The output from the audio jack J14 (from the PCM5102) is about 2V maximum¡­? That may drive some high impedance headphones but not a speaker!

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of Tim via groups.io
Sent: Tuesday, February 11, 2025 10:35 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] V12 compiling error

?

I think audio is hardware I will check Daudio out on Tweensy to see if signal is there, if so then it is U5.

I reloaded Jack's beta and it has working S meter and I see signal in filter window.

I can try reloading yours later.?

I loaded it using Tweensy Loader, could not quite figure out how do from Arduino IDE, as Dr. Bill says it may not be obvious.

You guys are great , last real programming I did was in 90's !?

The Arduino IDE keeps getting better I remember the days before the Library manager, much easier especially loading zip file from gethub!

Tim?


Re: V12 compiling error

 

I believe water fall was working in Jerry's just no signal in Filter Window
Jack's beta both water fall and filter window is working FB.?
?
I have noticed that on startup the signal strength is initially low and builds to reasonable level in a few seconds or so.
Might be AGC related.
?
Tim?


Re: V12 compiling error

 

¿ªÔÆÌåÓý

But does the waterfall work?

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of Tim via groups.io
Sent: Tuesday, February 11, 2025 10:16 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] V12 compiling error

?

In Jacks Beta the S meter was working, this version the S meter is not , don't see a signal in filter window either.

Tim?

?


Re: Initial RX calibration not working

 

I the next release it will be easy and intuitive instructions are on cal screen, easy peasy.
Tim?


Re: V12 compiling error

 

I think audio is hardware I will check Daudio out on Tweensy to see if signal is there, if so then it is U5.
I reloaded Jack's beta and it has working S meter and I see signal in filter window.
I can try reloading yours later.?
I loaded it using Tweensy Loader, could not quite figure out how do from Arduino IDE, as Dr. Bill says it may not be obvious.
You guys are great , last real programming I did was in 90's !?
The Arduino IDE keeps getting better I remember the days before the Library manager, much easier especially loading zip file from gethub!
Tim?


Re: V12 compiling error

 

Interesting. I've got that software running on my V12 - working S meter
and also audio out.

- Jerry, KF6VB

On 2025-02-11 08:16, Tim via groups.io wrote:
In Jacks Beta the S meter was working, this version the S meter is not
, don't see a signal in filter window either.
Tim
Links:
------
[1] /g/SoftwareControlledHamRadio/message/32722
[2] /mt/111092895/243852
[3] /g/SoftwareControlledHamRadio/post
[4] /g/SoftwareControlledHamRadio/editsub/243852
[5]
/g/SoftwareControlledHamRadio/leave/10484476/243852/1943518115/xyzzy


Re: V12 compiling error

 

I have my T41 in pieces right now as I'm putting in a new LPF board and will be moving it to a new case. It will be tomorrow or the next day before I can check this.

Jack, W8TEE

On Tuesday, February 11, 2025 at 11:16:20 AM EST, Tim via groups.io <w4yn@...> wrote:


In Jacks Beta the S meter was working, this version the S meter is not , don't see a signal in filter window either.
Tim?
?

--
Jack, W8TEE


Re: V12 compiling error

 

In Jacks Beta the S meter was working, this version the S meter is not , don't see a signal in filter window either.
Tim?
?


Re: V12 compiling error

 

Loaded fine Jerry
Only issue now is I have no audio out, seems to be a hardware issue on my Main Board.
Tim?


Re: V12 compiling error

 

¿ªÔÆÌåÓý

You can, its just not obvious in the IDE¡­ but you can always load HEX code directly

?

?

Dr. William J. Schmidt - K9HZ J68HZ 8P6HK ZF2HZ PJ4/K9HZ VP5/K9HZ PJ2/K9HZ VP2EHZ

?

Owner - Operator

Big Signal Ranch ¨C K9ZC

Staunton, Illinois

?

Owner ¨C Operator

Villa Grand Piton ¨C J68HZ

Soufriere, St. Lucia W.I.

Rent it:

?

Moderator: North American QRO Group at Groups.IO.

Moderator: Amateur Radio Builders Group at Groups.IO.

?

email:? bill@...

?

?

From: [email protected] <[email protected]> On Behalf Of Tim via groups.io
Sent: Tuesday, February 11, 2025 9:37 AM
To: [email protected]
Subject: Re: [SoftwareControlledHamRadio] V12 compiling error

?

Jerry?

That is a raw dump, I think, couldn't load in arduino progrmmer

Tim?


Re: V12 compiling error

 

It's a hex file. You should be able to upchuck it with the Teensy programmer.
It ( the programmer) has an "Open hex file" function in its command bar at the top. I sent it to you so you could just see if your radio worked, without
worrying about libraries or compile options.

- Jerry, KF6VB

On 2025-02-11 07:36, Tim via groups.io wrote:
Jerry
That is a raw dump, I think, couldn't load in arduino progrmmer
Tim
Links:
------
[1] /g/SoftwareControlledHamRadio/message/32718
[2] /mt/111092895/243852
[3] /g/SoftwareControlledHamRadio/post
[4] /g/SoftwareControlledHamRadio/editsub/243852
[5]
/g/SoftwareControlledHamRadio/leave/10484476/243852/1943518115/xyzzy


Re: V12 compiling error

 

Jerry?
That is a raw dump, I think, couldn't load in arduino progrmmer
Tim?


Fundamentals of I3C interface communication

 

! Wonder how soon we'll see devices that can handle it?
--
John P.
WA2FZW


Re: V12 compiling error

 

TNX Jerry I will compile and let you know.
I got my head around using Arduino programmer again.
Tend to for get if I sleep to many times Hi, 78 here.
Tim


Re: V12 compiling error

 

Yes RX cal works fine?
Will there be an option for different PB configurations?
My front panel designations are different than yours.
Tnx for all the help, Tim


Re: V12 compiling error

 

These look right, now. There's still a few things left for us to fix, but we're close.

Jack, W8TEE

On Monday, February 10, 2025 at 11:11:05 PM EST, Tim via groups.io <w4yn@...> wrote:


With smallest LTO
emory Usage on Teensy 4.1:
? FLASH: code:206376, data:127280, headers:8356 ? free for files:7784452
? ?RAM1: variables:178560, code:195720, padding:888 ? free for local variables:149120
? ?RAM2: variables:474752 ?free for malloc/new:49536

--
Jack, W8TEE