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
Suggestion for New API - CRC

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 06 January 2007, 19:41 PM    Post subject: Suggestion for New API - CRC Reply with quote

With all of this recent discussion on calculations of CRC for Modbus and Don's previously posted code for CRC calculations, it seems to make sense to have ZBasic functions that calculate the CRC-16 or CRC-32 for a data buffer. This is a common enough function that would benefit from a VM implementation.

The parameters could include the data buffer, length of data, CRC polynominal, initial CRC value etc.

Alternatively or in addition you could provide constants for the common models and add Modbus to the list. The compiler can expand these models out to VM system functions that implement the "Rocksoft" model.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language 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