|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
I2C device at a specific address with register operations. More...
Classes | |
| struct | config |
| I2C device configuration. More... | |
Public Member Functions | |
| master_device (master_bus &bus, uint16_t address, const struct config &config) | |
| Creates a new device on the specified bus. | |
| master_device (master_bus &bus, uint16_t address) | |
| Creates a new device on the specified bus. | |
| ~master_device () | |
| master_device (const master_device &)=delete | |
| master_device & | operator= (const master_device &)=delete |
| master_device (master_device &&other) noexcept | |
| master_device & | operator= (master_device &&other) noexcept |
| master_bus & | bus () const |
| Returns the parent bus. | |
| i2c_master_dev_handle_t | handle () const |
| Returns the underlying ESP-IDF device handle. | |
| uint16_t | address () const |
| Returns the device address. | |
| void | probe () const |
| Probes the device. | |
| template<typename Rep , typename Period > | |
| void | probe (const std::chrono::duration< Rep, Period > &timeout) const |
| Probes the device. | |
| result< void > | try_probe () const |
| Probes the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_probe (const std::chrono::duration< Rep, Period > &timeout) const |
| Probes the device. | |
| void | transmit (std::span< const uint8_t > data) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| void | transmit (std::span< const uint8_t > data, const std::chrono::duration< Rep, Period > &timeout) |
| Transmits data to the device. | |
| void | transmit (const uint8_t *buf, size_t size) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| void | transmit (const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Transmits data to the device. | |
| result< void > | try_transmit (std::span< const uint8_t > data) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_transmit (std::span< const uint8_t > data, const std::chrono::duration< Rep, Period > &timeout) |
| Transmits data to the device. | |
| result< void > | try_transmit (const uint8_t *buf, size_t size) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_transmit (const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Transmits data to the device. | |
| std::vector< uint8_t > | receive (size_t size) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| std::vector< uint8_t > | receive (size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| void | receive (uint8_t *buf, size_t size) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| void | receive (uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| void | receive (std::span< uint8_t > buf) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| void | receive (std::span< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| result< std::vector< uint8_t > > | try_receive (size_t size) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| result< std::vector< uint8_t > > | try_receive (size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| result< void > | try_receive (uint8_t *buf, size_t size) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_receive (uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| result< void > | try_receive (std::span< uint8_t > buf) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_receive (std::span< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| void | write_register (uint16_t reg, std::span< const uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint16_t reg, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_register (uint16_t reg, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint16_t reg, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| result< void > | try_write_register (uint16_t reg, std::span< const uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint16_t reg, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| result< void > | try_write_register (uint16_t reg, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint16_t reg, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_register (uint8_t high, uint8_t low, std::span< const uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint8_t high, uint8_t low, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_register (uint8_t high, uint8_t low, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint8_t high, uint8_t low, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| result< void > | try_write_register (uint8_t high, uint8_t low, std::span< const uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint8_t high, uint8_t low, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| result< void > | try_write_register (uint8_t high, uint8_t low, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint8_t high, uint8_t low, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_registers (std::span< const uint16_t > registers, std::span< const uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::span< const uint16_t > registers, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| void | write_registers (std::span< const uint16_t > registers, const uint8_t *buf, size_t size) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::span< const uint16_t > registers, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| void | write_registers (std::initializer_list< uint16_t > registers, std::span< const uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::initializer_list< uint16_t > registers, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| void | write_registers (std::initializer_list< uint16_t > registers, const uint8_t *buf, size_t size) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::initializer_list< uint16_t > registers, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| result< void > | try_write_registers (std::span< const uint16_t > registers, std::span< const uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_registers (std::span< const uint16_t > registers, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| result< void > | try_write_registers (std::span< const uint16_t > registers, const uint8_t *buf, size_t size) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_registers (std::span< const uint16_t > registers, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| result< void > | try_write_registers (std::initializer_list< uint16_t > registers, std::span< const uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_registers (std::initializer_list< uint16_t > registers, std::span< const uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| result< void > | try_write_registers (std::initializer_list< uint16_t > registers, const uint8_t *buf, size_t size) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_registers (std::initializer_list< uint16_t > registers, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| std::vector< uint8_t > | read_register (uint16_t reg, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| std::vector< uint8_t > | read_register (uint16_t reg, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| void | read_register (uint16_t reg, std::span< uint8_t > buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| void | read_register (uint16_t reg, std::span< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| void | read_register (uint16_t reg, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| void | read_register (uint16_t reg, uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< std::vector< uint8_t > > | try_read_register (uint16_t reg, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< std::vector< uint8_t > > | try_read_register (uint16_t reg, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint16_t reg, std::span< uint8_t > buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint16_t reg, std::span< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint16_t reg, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint16_t reg, uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| std::vector< uint8_t > | read_register (uint8_t high, uint8_t low, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| std::vector< uint8_t > | read_register (uint8_t high, uint8_t low, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| void | read_register (uint8_t high, uint8_t low, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| void | read_register (uint8_t high, uint8_t low, uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< std::vector< uint8_t > > | try_read_register (uint8_t high, uint8_t low, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< std::vector< uint8_t > > | try_read_register (uint8_t high, uint8_t low, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint8_t high, uint8_t low, std::span< uint8_t > buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint8_t high, uint8_t low, std::span< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint8_t high, uint8_t low, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint8_t high, uint8_t low, uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
Static Public Member Functions | |
| static result< master_device > | make (master_bus &bus, uint16_t address, const struct config &config) |
| Creates a new device on the specified bus. | |
| static result< master_device > | make (master_bus &bus, uint16_t address) |
| Creates a new device on the specified bus. | |
I2C device at a specific address with register operations.
Represents a specific device on an I2C bus. Provides methods for raw data transfer and register-based read/write operations.
This type is non-copyable and move-only. Result-returning methods on a moved-from object return errc::invalid_state. Simple accessors return default/null values.
Definition at line 344 of file master.hpp.
|
explicit |
Creates a new device on the specified bus.
Does not take ownership of bus. It is the caller's responsibility to ensure that this device does not outlive the bus.
| bus | The parent bus. |
| address | Device address. |
| config | Device configuration. |
| std::system_error | on failure. |
|
explicit |
Creates a new device on the specified bus.
Does not take ownership of bus. It is the caller's responsibility to ensure that this device does not outlive the bus.
| bus | The parent bus. |
| address | Device address. |
| std::system_error | on failure. |
| idfxx::i2c::master_device::~master_device | ( | ) |
|
delete |
|
noexcept |
|
inline |
Returns the device address.
Definition at line 455 of file master.hpp.
|
inline |
Returns the parent bus.
Definition at line 446 of file master.hpp.
|
inline |
Returns the underlying ESP-IDF device handle.
Definition at line 452 of file master.hpp.
|
static |
Creates a new device on the specified bus.
Does not take ownership of bus. It is the caller's responsibility to ensure that this device does not outlive the bus.
| bus | The parent bus. |
| address | Device address. |
|
static |
Creates a new device on the specified bus.
Does not take ownership of bus. It is the caller's responsibility to ensure that this device does not outlive the bus.
| bus | The parent bus. |
| address | Device address. |
| config | Device configuration. |
|
delete |
|
noexcept |
|
inline |
Probes the device.
| std::system_error | if the device does not acknowledge or on error. |
Definition at line 464 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and probe().
Referenced by probe().
|
inline |
Probes the device.
| timeout | Maximum time to wait for response. |
| std::system_error | if the device does not acknowledge or on error. |
Definition at line 475 of file master.hpp.
References idfxx::timeout, idfxx::i2c::master_bus::try_probe(), and idfxx::unwrap().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1303 of file master.hpp.
References idfxx::unwrap().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1321 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| std::system_error | on error. |
Definition at line 1334 of file master.hpp.
References idfxx::unwrap().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1347 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1361 of file master.hpp.
References idfxx::unwrap().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1375 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1476 of file master.hpp.
References idfxx::unwrap().
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1495 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1510 of file master.hpp.
References idfxx::unwrap().
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1527 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Receives data from the device.
| size | Number of bytes to receive. |
| std::system_error | on error. |
Definition at line 617 of file master.hpp.
References idfxx::unwrap().
|
inline |
Receives data from the device.
| size | Number of bytes to receive. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 631 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Receives data from the device.
| buf | Buffer for received data. |
| std::system_error | on error. |
Definition at line 669 of file master.hpp.
References idfxx::unwrap().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 681 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
| std::system_error | on error. |
Definition at line 644 of file master.hpp.
References idfxx::unwrap().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 657 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
| std::system_error | on error. |
Definition at line 536 of file master.hpp.
References idfxx::unwrap().
|
inline |
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 549 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Transmits data to the device.
| data | Data to transmit. |
| std::system_error | on error. |
Definition at line 511 of file master.hpp.
References idfxx::unwrap().
|
inline |
Transmits data to the device.
| data | Data to transmit. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 523 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
Probes the device.
Definition at line 485 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_probe().
Referenced by try_probe().
|
inline |
Probes the device.
| timeout | Maximum time to wait for response. |
Definition at line 495 of file master.hpp.
References idfxx::error(), idfxx::invalid_state, and idfxx::timeout.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| size | Number of bytes to read. |
Definition at line 1388 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
Definition at line 1403 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
Definition at line 1416 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
Definition at line 1430 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
Definition at line 1443 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
Definition at line 1459 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| size | Number of bytes to read. |
Definition at line 1547 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
Definition at line 1563 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
Definition at line 1577 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
| timeout | Maximum time to wait for completion. |
Definition at line 1592 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
Definition at line 1611 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Reads data from a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
Definition at line 1627 of file master.hpp.
References idfxx::timeout.
Receives data from the device.
| size | Number of bytes to receive. |
Definition at line 693 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_receive().
Referenced by try_receive().
|
inline |
Receives data from the device.
| size | Number of bytes to receive. |
| timeout | Maximum time to wait for completion. |
Definition at line 705 of file master.hpp.
References idfxx::timeout.
Receives data from the device.
| buf | Buffer for received data. |
Definition at line 744 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_receive().
Referenced by try_receive().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| timeout | Maximum time to wait for completion. |
Definition at line 755 of file master.hpp.
References idfxx::timeout.
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
Definition at line 718 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
| timeout | Maximum time to wait for completion. |
Definition at line 733 of file master.hpp.
References idfxx::timeout.
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
Definition at line 587 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
Definition at line 602 of file master.hpp.
References idfxx::timeout.
Transmits data to the device.
| data | Data to transmit. |
Definition at line 561 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Transmits data to the device.
| data | Data to transmit. |
| timeout | Maximum time to wait for completion. |
Definition at line 575 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| size | Number of bytes. |
Definition at line 852 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
Definition at line 867 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
Definition at line 824 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 839 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
Definition at line 994 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
Definition at line 1010 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
Definition at line 960 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 975 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
Definition at line 1267 of file master.hpp.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| timeout | Maximum time to wait for completion. |
Definition at line 1282 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
Definition at line 1235 of file master.hpp.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 1249 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
Definition at line 1199 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| timeout | Maximum time to wait for completion. |
Definition at line 1214 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
Definition at line 1167 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 1181 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| size | Number of bytes. |
| std::system_error | on error. |
Definition at line 796 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 811 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 769 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 782 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
| std::system_error | on error. |
Definition at line 923 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 940 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 887 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to a register.
| high | High byte of register address. |
| low | Low byte of register address. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 903 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| std::system_error | on error. |
Definition at line 1133 of file master.hpp.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1149 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 1100 of file master.hpp.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1115 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| std::system_error | on error. |
Definition at line 1063 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1079 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 1030 of file master.hpp.
References idfxx::unwrap().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 1045 of file master.hpp.
References idfxx::timeout, and idfxx::unwrap().