Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
Diff: OneWire_Masters/DS2480B/ds2480b.h
- Revision:
- 65:a28ac52ca127
- Parent:
- 63:422be898443a
- Child:
- 67:76776130aec9
diff -r 08384e63ee40 -r a28ac52ca127 OneWire_Masters/DS2480B/ds2480b.h --- a/OneWire_Masters/DS2480B/ds2480b.h Tue Apr 19 21:56:03 2016 +0000 +++ b/OneWire_Masters/DS2480B/ds2480b.h Wed Apr 20 21:47:42 2016 +0000 @@ -141,10 +141,11 @@ uint8_t _USpeed; // 1-Wire communication speed static const size_t MAX_RX_BUFFER_LEN = 256; - struct ds2480b_circular_buff_s + volatile struct ds2480b_circular_buff_s { uint8_t w_idx; uint8_t r_idx; + uint8_t rx_bytes_available; bool wrap_error; uint8_t buff[MAX_RX_BUFFER_LEN]; }rx_buffer;