15static constexpr uint8_t DS248X_COMMAND_RESET = 0xF0;
16static constexpr uint8_t DS248X_COMMAND_SETREADPTR = 0xE1;
17static constexpr uint8_t DS248X_COMMAND_WRITECONFIG = 0xD2;
18static constexpr uint8_t DS248X_COMMAND_CHANNELSELECT = 0xC3;
19static constexpr uint8_t DS248X_COMMAND_RESETWIRE = 0xB4;
20static constexpr uint8_t DS248X_COMMAND_WRITEBYTE = 0xA5;
21static constexpr uint8_t DS248X_COMMAND_READBYTE = 0x96;
22static constexpr uint8_t DS248X_COMMAND_TRIPLET = 0x78;
23static constexpr uint8_t DS2484_COMMAND_ADJUSTPORT = 0xC3;
26static constexpr uint8_t DS2484_PORT_PARAM_TRSTL = 0x0;
27static constexpr uint8_t DS2484_PORT_PARAM_TMSP = 0x1;
28static constexpr uint8_t DS2484_PORT_PARAM_TW0L = 0x2;
29static constexpr uint8_t DS2484_PORT_PARAM_TREC0 = 0x3;
30static constexpr uint8_t DS2484_PORT_PARAM_RWPU = 0x4;
33static constexpr uint8_t DS248X_STATUS_BUSY = 0x01;
34static constexpr uint8_t DS248X_STATUS_PPD = 0x02;
35static constexpr uint8_t DS248X_STATUS_SD = 0x04;
36static constexpr uint8_t DS248X_STATUS_RST = 0x10;
37static constexpr uint8_t DS248X_STATUS_SBR = 0x20;
38static constexpr uint8_t DS248X_STATUS_TSB = 0x40;
39static constexpr uint8_t DS248X_STATUS_DIR = 0x80;
42static constexpr uint8_t DS248X_POINTER_STATUS = 0xF0;
43static constexpr uint8_t DS248X_POINTER_DATA = 0xE1;
44static constexpr uint8_t DS248X_POINTER_CONFIG = 0xC3;
47static constexpr uint8_t DS248X_CONFIG_ACTIVE_PULLUP = 0x01;
61 void setup()
override;
DS248x I2C-to-1-Wire Bridge Component.
void set_val_tmsp(uint8_t val)
void set_val_rwpu(uint8_t val)
bool configure_ds2484_port_(uint8_t param, uint8_t val)
void set_sleep_pin(InternalGPIOPin *pin)
float get_setup_priority() const override
void set_val_tw0l(uint8_t val)
bool select_channel(uint8_t channel)
void set_channel_count(uint8_t count)
void set_val_trstl(uint8_t val)
void set_active_pullup(bool enabled)
uint8_t get_channel_count() const
Get the channel count (1 for DS2482-100/DS2484, 8 for DS2482-800)
bool ow_reset(bool &presence)
void set_bus_sleep(bool enabled)
InternalGPIOPin * sleep_pin_
void set_val_trec0(uint8_t val)
void on_shutdown() override
bool set_read_pointer_(uint8_t ptr)
static constexpr uint8_t DS2484_PARAM_UNSET
bool ow_read_byte(uint8_t &byte)
bool ow_write_byte(uint8_t byte)
void set_hub_sleep(bool enabled)
bool search_triplet(bool search_direction, uint8_t &status)
void dump_config() override
This Class provides the methods to read/write bytes from/to an i2c device.
constexpr float BUS
For communication buses like i2c/spi.