Will via plug on 19 Feb 2024 19:08:31 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Arduino Syntax Questions |
___________________________________________________________________________I've been working with some auduino boards lately, and have come across some published programs that contain syntax that I do not understand. I've checked multiple on-line references, and haven't found a good reference to explain what is going on. Maybe someone here can help?
Here's are some examples of program statements that I don't understand. These all have to do with setting internal timer registers in a SAMD21 processor on an Arduino Nano 33 IoT board.
From an interrupt routine:
- TC5->COUNT16.INTFLAG.bit.MC0 = 1; //Writing a 1 to INTFLAG.bit.MC0 clears the interrupt so that it will run again
- GCLK->CLKCTRL.reg = (uint16_t) (GCLK_CLKCTRL_CLKEN | GCLK_CLKCTRL_GEN_GCLK0 | GCLK_CLKCTRL_ID(GCM_TC4_TC5)) ;
So my questions:
- what does the "->" signify?
- What is the "|" character telling me about the assignment statement?
TIA!
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug