Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
SPICmd ignored if no channel open?

 
Post new topic   Reply to topic    Forum Index -> ZBasic Native Mode
Author Message
GTBecker



Joined: 18 Jan 2006
Posts: 457
Location: Cape Coral

Posted: 15 January 2010, 15:34 PM    Post subject: SPICmd ignored if no channel open? Reply with quote

I've found it convenient to switch between SPI master and slave during code testing using either OpenSPI() or OpenSPISlave(). It appears there is no harm in leaving master SPICmds in place while in slave mode; the machine acts like they are ignored if no SPI channel has been opened. Is this a safe practice?

Alternatively I can use conditional compiles, but commenting out just one line is easier.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 15 January 2010, 16:33 PM    Post subject: Re: SPICmd ignored if no channel open? Reply with quote

GTBecker wrote:
It appears there is no harm in leaving master SPICmds in place while in slave mode
If the SPI interface is already active, as it is if slave mode has been activated, then SPICmd() does nothing.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Native Mode Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group