Framework for reading and writing variables in real time on any MBED platform.
DistantIO
This is the C implementation of the DistantIO slave framework.
Library is working but slight API breaks may occur in the future. C++ version is also in development.
To get the master-side implementation, see https://github.com/Overdrivr/DistantIO
crc.h@6:72d46dbdbe7a, 2015-10-16 (annotated)
- Committer:
- Overdrivr
- Date:
- Fri Oct 16 16:16:19 2015 +0000
- Revision:
- 6:72d46dbdbe7a
- Parent:
- 1:aaffeb93f99b
removed 'static' keyword in front arrays that just increase RAM usage (premature optimization)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Overdrivr | 1:aaffeb93f99b | 1 | //From : https://en.wikipedia.org/wiki/Computation_of_cyclic_redundancy_checks |
Overdrivr | 1:aaffeb93f99b | 2 | |
Overdrivr | 0:c4676d32d381 | 3 | #ifndef CRC_H_ |
Overdrivr | 0:c4676d32d381 | 4 | #define CRC_H_ |
Overdrivr | 0:c4676d32d381 | 5 | |
Overdrivr | 0:c4676d32d381 | 6 | #include <stdint.h> |
Overdrivr | 0:c4676d32d381 | 7 | |
Overdrivr | 0:c4676d32d381 | 8 | uint16_t crc16(uint8_t *data, uint16_t len); |
Overdrivr | 0:c4676d32d381 | 9 | |
Overdrivr | 0:c4676d32d381 | 10 | #endif |
Overdrivr | 0:c4676d32d381 | 11 |