19 #ifndef HARDWARE_OWI_H 20 #define HARDWARE_OWI_H 23 #include "Driver/DS2482.h" 38 m_bridge(twi, 0x18 | (subaddr & 0x03))
72 res |= (value ? 0x80 : 0x00);
93 m_bridge.one_wire_write_bit(value & 0x01);
110 return (
m_bridge.one_wire_triplet(dir));
133 return (
m_bridge.write_configuration(apu, spu, iws));
144 return (
m_bridge.channel_select(chan));
bool device_configuration(bool apu=true, bool spu=false, bool iws=false)
OWI(TWI &twi, uint8_t subaddr=0)
virtual int8_t triplet(uint8_t &dir)
bool channel_select(uint8_t chan)
virtual void write(uint8_t value, uint8_t bits=CHARBITS)
virtual uint8_t read(uint8_t bits=CHARBITS)