Casey Bralla via plug on 19 Feb 2024 18:39:43 -0800
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] Arduino Syntax Questions
|
- From: Casey Bralla via plug <plug@lists.phillylinux.org>
- To: "PLUG Philadelphia Linux Users Group" <PLUG@Lists.PhillyLinux.org>
- Subject: [PLUG] Arduino Syntax Questions
- Date: Mon, 19 Feb 2024 21:39:36 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendinblue.com; q=dns/txt; s=mail; bh=eX2WhE/hzkm8Kd0dY5OjG5zikj0PJJRMo7V352BfsPw=; h=from:subject:date:to:mime-version:content-type:list-unsubscribe:x-csa-complaints:list-unsubscribe-post; b=Cz9ek2ojIshnmdtHEmtTLq0GpcolBsN5km/2snSKVFwbjG2hlALD111aXKL9YlqBcy3z/dQkv3Ag /SUfFLoHPNb+OBH5fITTsJ6cFbu1uSd2N1Kko44lUn77lqVMqEdx9rK6jndLnLPxcTMTBO4YkT9P iW/vo2YayTyonSrq9n0=
- Feedback-id: 77.32.148.27:4536357_-1:4536357:Sendinblue
- Origin-messageid: <ddd88dce-df58-45a7-9a9a-d4fe10db0143@NerdWorld.org>
- Reply-to: Casey Bralla <MailList@NerdWorld.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: Mozilla Thunderbird
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