![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
(Working) Code to interface 3 LoadCells to ADISense1000 and display values using the Labview code.
Fork of 4Bridge_ADISense1000_Example_copy by
src/crc16.h@3:83d10123d1cd, 2018-08-08 (annotated)
- Committer:
- RGurav
- Date:
- Wed Aug 08 08:08:53 2018 +0000
- Revision:
- 3:83d10123d1cd
- Parent:
- 0:76fed7dd9235
(Working); Code to interface 3 loadCell to ADISense1000 and display using Labview code.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
seanwilson10 | 0:76fed7dd9235 | 1 | /* |
seanwilson10 | 0:76fed7dd9235 | 2 | * Copyright 2001-2010 Georges Menie (www.menie.org) |
seanwilson10 | 0:76fed7dd9235 | 3 | * All rights reserved. |
seanwilson10 | 0:76fed7dd9235 | 4 | * Redistribution and use in source and binary forms, with or without |
seanwilson10 | 0:76fed7dd9235 | 5 | * modification, are permitted provided that the following conditions are met: |
seanwilson10 | 0:76fed7dd9235 | 6 | * |
seanwilson10 | 0:76fed7dd9235 | 7 | * * Redistributions of source code must retain the above copyright |
seanwilson10 | 0:76fed7dd9235 | 8 | * notice, this list of conditions and the following disclaimer. |
seanwilson10 | 0:76fed7dd9235 | 9 | * * Redistributions in binary form must reproduce the above copyright |
seanwilson10 | 0:76fed7dd9235 | 10 | * notice, this list of conditions and the following disclaimer in the |
seanwilson10 | 0:76fed7dd9235 | 11 | * documentation and/or other materials provided with the distribution. |
seanwilson10 | 0:76fed7dd9235 | 12 | * * Neither the name of the University of California, Berkeley nor the |
seanwilson10 | 0:76fed7dd9235 | 13 | * names of its contributors may be used to endorse or promote products |
seanwilson10 | 0:76fed7dd9235 | 14 | * derived from this software without specific prior written permission. |
seanwilson10 | 0:76fed7dd9235 | 15 | * |
seanwilson10 | 0:76fed7dd9235 | 16 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY |
seanwilson10 | 0:76fed7dd9235 | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
seanwilson10 | 0:76fed7dd9235 | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
seanwilson10 | 0:76fed7dd9235 | 19 | * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY |
seanwilson10 | 0:76fed7dd9235 | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
seanwilson10 | 0:76fed7dd9235 | 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
seanwilson10 | 0:76fed7dd9235 | 22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
seanwilson10 | 0:76fed7dd9235 | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
seanwilson10 | 0:76fed7dd9235 | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
seanwilson10 | 0:76fed7dd9235 | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
seanwilson10 | 0:76fed7dd9235 | 26 | */ |
seanwilson10 | 0:76fed7dd9235 | 27 | |
seanwilson10 | 0:76fed7dd9235 | 28 | #ifndef _CRC16_H_ |
seanwilson10 | 0:76fed7dd9235 | 29 | #define _CRC16_H_ |
seanwilson10 | 0:76fed7dd9235 | 30 | |
seanwilson10 | 0:76fed7dd9235 | 31 | unsigned short crc16_ccitt(const void *buf, int len); |
seanwilson10 | 0:76fed7dd9235 | 32 | |
seanwilson10 | 0:76fed7dd9235 | 33 | #endif /* _CRC16_H_ */ |
seanwilson10 | 0:76fed7dd9235 | 34 |