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: OneWire_Masters/DS2480B/ds2480b.h
- Revision:
- 65:a28ac52ca127
- Parent:
- 63:422be898443a
- Child:
- 67:76776130aec9
--- 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;