Vybhav Kadaba
/
EV-PRO-MW1001_MWARE1239
Register map updated
src/crc16.h@5:0728bde67bdb, 2019-06-05 (annotated)
- Committer:
- Vkadaba
- Date:
- Wed Jun 05 05:39:15 2019 +0000
- Revision:
- 5:0728bde67bdb
- Parent:
- 0:85855ecd3257
Replaced all references to ADISense/ADISENSE1000/adi_sense with ADMW/ADMW1001/admw and the prject builds.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ADIJake | 0:85855ecd3257 | 1 | /* |
ADIJake | 0:85855ecd3257 | 2 | * Copyright 2001-2010 Georges Menie (www.menie.org) |
ADIJake | 0:85855ecd3257 | 3 | * All rights reserved. |
ADIJake | 0:85855ecd3257 | 4 | * Redistribution and use in source and binary forms, with or without |
ADIJake | 0:85855ecd3257 | 5 | * modification, are permitted provided that the following conditions are met: |
ADIJake | 0:85855ecd3257 | 6 | * |
ADIJake | 0:85855ecd3257 | 7 | * * Redistributions of source code must retain the above copyright |
ADIJake | 0:85855ecd3257 | 8 | * notice, this list of conditions and the following disclaimer. |
ADIJake | 0:85855ecd3257 | 9 | * * Redistributions in binary form must reproduce the above copyright |
ADIJake | 0:85855ecd3257 | 10 | * notice, this list of conditions and the following disclaimer in the |
ADIJake | 0:85855ecd3257 | 11 | * documentation and/or other materials provided with the distribution. |
ADIJake | 0:85855ecd3257 | 12 | * * Neither the name of the University of California, Berkeley nor the |
ADIJake | 0:85855ecd3257 | 13 | * names of its contributors may be used to endorse or promote products |
ADIJake | 0:85855ecd3257 | 14 | * derived from this software without specific prior written permission. |
ADIJake | 0:85855ecd3257 | 15 | * |
ADIJake | 0:85855ecd3257 | 16 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY |
ADIJake | 0:85855ecd3257 | 17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
ADIJake | 0:85855ecd3257 | 18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
ADIJake | 0:85855ecd3257 | 19 | * DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY |
ADIJake | 0:85855ecd3257 | 20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
ADIJake | 0:85855ecd3257 | 21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
ADIJake | 0:85855ecd3257 | 22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
ADIJake | 0:85855ecd3257 | 23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
ADIJake | 0:85855ecd3257 | 24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
ADIJake | 0:85855ecd3257 | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
ADIJake | 0:85855ecd3257 | 26 | */ |
ADIJake | 0:85855ecd3257 | 27 | |
ADIJake | 0:85855ecd3257 | 28 | #ifndef _CRC16_H_ |
ADIJake | 0:85855ecd3257 | 29 | #define _CRC16_H_ |
ADIJake | 0:85855ecd3257 | 30 | |
ADIJake | 0:85855ecd3257 | 31 | #ifdef __cplusplus |
ADIJake | 0:85855ecd3257 | 32 | extern "C" { |
ADIJake | 0:85855ecd3257 | 33 | #endif |
ADIJake | 0:85855ecd3257 | 34 | |
Vkadaba | 5:0728bde67bdb | 35 | unsigned short admw_crc16_ccitt(const void *buf, int len); |
ADIJake | 0:85855ecd3257 | 36 | |
ADIJake | 0:85855ecd3257 | 37 | #ifdef __cplusplus |
ADIJake | 0:85855ecd3257 | 38 | } |
ADIJake | 0:85855ecd3257 | 39 | #endif |
ADIJake | 0:85855ecd3257 | 40 | |
ADIJake | 0:85855ecd3257 | 41 | #endif /* _CRC16_H_ */ |
ADIJake | 0:85855ecd3257 | 42 |