Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Masters/DS248x/ds248x.cpp
- Revision:
- 3:644fc630f958
- Parent:
- 2:02d228c25fd4
- Child:
- 5:ce108eeb878d
diff -r 02d228c25fd4 -r 644fc630f958 OneWire_Masters/DS248x/ds248x.cpp --- a/OneWire_Masters/DS248x/ds248x.cpp Sun Jan 31 06:15:24 2016 +0000 +++ b/OneWire_Masters/DS248x/ds248x.cpp Sun Jan 31 22:42:01 2016 +0000 @@ -772,7 +772,7 @@ // if the mask is 0 then go to new SerialNum byte rom_byte_number and reset mask if (rom_byte_mask == 0) { - calc_crc8(_rom_number[rom_byte_number]); // accumulate the CRC + OWCalc_crc8(_rom_number[rom_byte_number]); // accumulate the CRC rom_byte_number++; rom_byte_mask = 1; } @@ -909,7 +909,7 @@ //********************************************************************* -uint8_t Ds248x::calc_crc8(uint8_t data) +uint8_t Ds248x::OWCalc_crc8(uint8_t data) { unsigned char i; @@ -932,7 +932,7 @@ //********************************************************************* -void Ds248x::get_rom_number(uint8_t *p_rom_buff) +void Ds248x::OWgetROMnumber(uint8_t *p_rom_buff) { for(uint8_t idx = 0; idx < 8; idx++) {