1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.
Dependents: MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more
Superseded by MaximInterface.
Diff: Masters/OneWireMaster.h
- Revision:
- 78:0cbbac7f2016
- Parent:
- 77:529edb329ee0
- Child:
- 79:7f22823a5a2d
diff -r 529edb329ee0 -r 0cbbac7f2016 Masters/OneWireMaster.h --- a/Masters/OneWireMaster.h Mon May 16 10:36:30 2016 -0500 +++ b/Masters/OneWireMaster.h Mon May 16 15:18:09 2016 -0500 @@ -96,20 +96,6 @@ SearchState() { reset(); } }; - /// Perform a CRC16 calculation. - /// @param crc16 Beginning state of the CRC generator. - /// @param data Data to pass though the CRC generator. - /// @returns The calculated CRC16. - static uint16_t calculateCrc16(uint16_t crc16, uint16_t data); - - /// Perform a CRC16 calculation with variable length data. - /// @param[in] data Data array to pass through the CRC generator. - /// @param data_offset Offset of the data array to begin processing. - /// @param data_len Length of the data array to process. - /// @param crc Beginning state of the CRC generator. - /// @returns The calculated CRC16. - static uint16_t calculateCrc16(const uint8_t * data, size_t dataOffset, size_t dataLen, uint16_t crc = 0); - /// Allow freeing through a base class pointer. virtual ~OneWireMaster() { }