|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
I2C device at a specific 7-bit address with register operations. More...
Public Member Functions | |
| master_device (std::shared_ptr< master_bus > bus, uint8_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 &&)=delete | |
| master_device & | operator= (master_device &&)=delete |
| const std::shared_ptr< master_bus > & | bus () const |
| Returns the parent bus. | |
| i2c_master_dev_handle_t | handle () const |
| Returns the underlying ESP-IDF device handle. | |
| uint8_t | address () const |
| Returns the 7-bit 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 (const std::vector< uint8_t > data) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| void | transmit (const std::vector< 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 (const std::vector< uint8_t > data) |
| Transmits data to the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_transmit (const std::vector< 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::vector< uint8_t > buf) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| void | receive (std::vector< 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::vector< uint8_t > buf) |
| Receives data from the device. | |
| template<typename Rep , typename Period > | |
| result< void > | try_receive (std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Receives data from the device. | |
| void | write_register (uint16_t reg, const std::vector< uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint16_t reg, const std::vector< 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, const std::vector< uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint16_t reg, const std::vector< 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 regHigh, uint8_t regLow, const std::vector< uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint8_t regHigh, uint8_t regLow, const std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_register (uint8_t regHigh, uint8_t regLow, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| void | write_register (uint8_t regHigh, uint8_t regLow, 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 regHigh, uint8_t regLow, const std::vector< uint8_t > buf) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint8_t regHigh, uint8_t regLow, const std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| result< void > | try_write_register (uint8_t regHigh, uint8_t regLow, const uint8_t *buf, size_t size) |
| Writes data to a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_register (uint8_t regHigh, uint8_t regLow, const uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to a register. | |
| void | write_registers (std::vector< uint16_t > registers, const std::vector< uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::vector< uint16_t > registers, const std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| void | write_registers (std::vector< uint16_t > registers, const uint8_t *buf, size_t size) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| void | write_registers (std::vector< 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::vector< uint16_t > registers, const std::vector< uint8_t > buf) |
| Writes data to multiple registers. | |
| template<typename Rep , typename Period > | |
| result< void > | try_write_registers (std::vector< uint16_t > registers, const std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Writes data to multiple registers. | |
| result< void > | try_write_registers (std::vector< 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::vector< 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::vector< uint8_t > buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| void | read_register (uint16_t reg, std::vector< 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::vector< uint8_t > &buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint16_t reg, std::vector< 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 regHigh, uint8_t regLow, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| std::vector< uint8_t > | read_register (uint8_t regHigh, uint8_t regLow, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| void | read_register (uint8_t regHigh, uint8_t regLow, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| void | read_register (uint8_t regHigh, uint8_t regLow, 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 regHigh, uint8_t regLow, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< std::vector< uint8_t > > | try_read_register (uint8_t regHigh, uint8_t regLow, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint8_t regHigh, uint8_t regLow, std::vector< uint8_t > buf) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint8_t regHigh, uint8_t regLow, std::vector< uint8_t > buf, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
| result< void > | try_read_register (uint8_t regHigh, uint8_t regLow, uint8_t *buf, size_t size) |
| Reads data from a register. | |
| template<typename Rep , typename Period > | |
| result< void > | try_read_register (uint8_t regHigh, uint8_t regLow, uint8_t *buf, size_t size, const std::chrono::duration< Rep, Period > &timeout) |
| Reads data from a register. | |
Static Public Member Functions | |
| static result< std::unique_ptr< master_device > > | make (std::shared_ptr< master_bus > bus, uint8_t address) |
| Creates a new device on the specified bus. | |
I2C device at a specific 7-bit address with register operations.
Represents a specific device at a 7-bit address. Provides methods for raw data transfer and register-based read/write operations.
Definition at line 209 of file master.hpp.
|
explicit |
Creates a new device on the specified bus.
| bus | The parent bus. |
| address | 7-bit device address. |
| std::system_error | on failure. |
| idfxx::i2c::master_device::~master_device | ( | ) |
|
delete |
|
delete |
|
inline |
Returns the 7-bit device address.
Definition at line 248 of file master.hpp.
|
inline |
Returns the parent bus.
Definition at line 242 of file master.hpp.
|
inline |
Returns the underlying ESP-IDF device handle.
Definition at line 245 of file master.hpp.
|
static |
Creates a new device on the specified bus.
| bus | The parent bus. |
| address | 7-bit device address. |
|
delete |
|
delete |
|
inline |
Probes the device.
| std::system_error | if the device does not acknowledge or on error. |
Definition at line 257 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 268 of file master.hpp.
References idfxx::timeout.
|
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 960 of file master.hpp.
References try_read_register(), and 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 978 of file master.hpp.
References idfxx::timeout, try_read_register(), and idfxx::unwrap().
|
inline |
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 991 of file master.hpp.
References try_read_register(), and 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 1004 of file master.hpp.
References idfxx::timeout, try_read_register(), and 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. |
| std::system_error | on error. |
Definition at line 1018 of file master.hpp.
References try_read_register(), and 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 1032 of file master.hpp.
References idfxx::timeout, try_read_register(), and idfxx::unwrap().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1133 of file master.hpp.
References try_read_register(), and idfxx::unwrap().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | 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 1152 of file master.hpp.
References idfxx::timeout, try_read_register(), and idfxx::unwrap().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
| std::system_error | on error. |
Definition at line 1167 of file master.hpp.
References try_read_register(), and idfxx::unwrap().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | 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 1184 of file master.hpp.
References idfxx::timeout, try_read_register(), and idfxx::unwrap().
|
inline |
Receives data from the device.
| size | Number of bytes to receive. |
| std::system_error | on error. |
Definition at line 407 of file master.hpp.
References try_receive(), and 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 421 of file master.hpp.
References idfxx::timeout, try_receive(), and idfxx::unwrap().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| std::system_error | on error. |
Definition at line 459 of file master.hpp.
References try_receive(), and 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 472 of file master.hpp.
References idfxx::timeout, try_receive(), and idfxx::unwrap().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
| std::system_error | on error. |
Definition at line 434 of file master.hpp.
References try_receive(), and 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 447 of file master.hpp.
References idfxx::timeout, try_receive(), and idfxx::unwrap().
|
inline |
Transmits data to the device.
| data | Data to transmit. |
| std::system_error | on error. |
Definition at line 301 of file master.hpp.
References try_transmit(), and 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 313 of file master.hpp.
References idfxx::timeout, try_transmit(), and idfxx::unwrap().
|
inline |
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
| std::system_error | on error. |
Definition at line 326 of file master.hpp.
References try_transmit(), and 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 339 of file master.hpp.
References idfxx::timeout, try_transmit(), and idfxx::unwrap().
|
inline |
Probes the device.
Definition at line 278 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 288 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| size | Number of bytes to read. |
Definition at line 1045 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
Referenced by read_register(), read_register(), read_register(), read_register(), read_register(), read_register(), read_register(), read_register(), read_register(), read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), try_read_register(), and try_read_register().
|
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 1060 of file master.hpp.
References idfxx::timeout, and try_read_register().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
Definition at line 1073 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
|
inline |
Reads data from a register.
| reg | Register address (16-bit, MSB first). |
| buf | Buffer for received data. |
Definition at line 1087 of file master.hpp.
References idfxx::timeout, and try_read_register().
|
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 1100 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
|
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 1116 of file master.hpp.
References idfxx::timeout.
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| size | Number of bytes to read. |
Definition at line 1204 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| size | Number of bytes to read. |
| timeout | Maximum time to wait for completion. |
Definition at line 1220 of file master.hpp.
References idfxx::timeout, and try_read_register().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Buffer for received data. |
Definition at line 1234 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Buffer for received data. |
| timeout | Maximum time to wait for completion. |
Definition at line 1249 of file master.hpp.
References idfxx::timeout, and try_read_register().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Buffer for received data. |
| size | Number of bytes to read. |
Definition at line 1268 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_read_register().
|
inline |
Reads data from a register.
| regHigh | High byte of register address. |
| regLow | 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 1284 of file master.hpp.
References idfxx::timeout.
|
inline |
Receives data from the device.
| size | Number of bytes to receive. |
Definition at line 484 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_receive().
Referenced by receive(), receive(), receive(), receive(), receive(), receive(), try_receive(), try_receive(), try_receive(), and try_receive().
|
inline |
Receives data from the device.
| size | Number of bytes to receive. |
| timeout | Maximum time to wait for completion. |
Definition at line 496 of file master.hpp.
References idfxx::timeout, and try_receive().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
Definition at line 535 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 547 of file master.hpp.
References idfxx::timeout, and try_receive().
|
inline |
Receives data from the device.
| buf | Buffer for received data. |
| size | Number of bytes to receive. |
Definition at line 509 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_receive().
|
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 524 of file master.hpp.
References idfxx::timeout.
|
inline |
Transmits data to the device.
| data | Data to transmit. |
Definition at line 351 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_transmit().
Referenced by transmit(), transmit(), transmit(), transmit(), try_transmit(), try_transmit(), and try_transmit().
|
inline |
Transmits data to the device.
| data | Data to transmit. |
| timeout | Maximum time to wait for completion. |
Definition at line 365 of file master.hpp.
References idfxx::timeout, and try_transmit().
|
inline |
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
Definition at line 377 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_transmit().
|
inline |
Transmits data to the device.
| buf | Data to transmit. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
Definition at line 392 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 617 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_register().
Referenced by try_write_register(), try_write_register(), try_write_register(), try_write_register(), try_write_register(), try_write_register(), write_register(), write_register(), write_register(), write_register(), write_register(), write_register(), write_register(), and write_register().
|
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 631 of file master.hpp.
References idfxx::timeout, and try_write_register().
|
inline |
Writes data to a register.
| reg | Register address (16-bit, MSB first). |
| buf | Data to write. |
| size | Number of bytes. |
Definition at line 648 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_register().
|
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 663 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
Definition at line 756 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_register().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 771 of file master.hpp.
References idfxx::timeout, and try_write_register().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
Definition at line 790 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_register().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
| timeout | Maximum time to wait for completion. |
Definition at line 806 of file master.hpp.
References idfxx::timeout.
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
Definition at line 893 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_registers().
Referenced by try_write_registers(), try_write_registers(), try_write_registers(), write_registers(), write_registers(), write_registers(), and write_registers().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
Definition at line 907 of file master.hpp.
References idfxx::timeout, and try_write_registers().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| size | Number of bytes per register. |
Definition at line 924 of file master.hpp.
References idfxx::i2c::DEFAULT_TIMEOUT, and try_write_registers().
|
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 939 of file master.hpp.
References idfxx::timeout.
|
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 561 of file master.hpp.
References try_write_register(), and 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 575 of file master.hpp.
References idfxx::timeout, try_write_register(), and idfxx::unwrap().
|
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 589 of file master.hpp.
References try_write_register(), and 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 604 of file master.hpp.
References idfxx::timeout, try_write_register(), and idfxx::unwrap().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 683 of file master.hpp.
References try_write_register(), and idfxx::unwrap().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| timeout | Maximum time to wait for completion. |
| std::system_error | on error. |
Definition at line 699 of file master.hpp.
References idfxx::timeout, try_write_register(), and idfxx::unwrap().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | Low byte of register address. |
| buf | Data to write. |
| size | Number of bytes. |
| std::system_error | on error. |
Definition at line 719 of file master.hpp.
References try_write_register(), and idfxx::unwrap().
|
inline |
Writes data to a register.
| regHigh | High byte of register address. |
| regLow | 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 736 of file master.hpp.
References idfxx::timeout, try_write_register(), and idfxx::unwrap().
|
inline |
Writes data to multiple registers.
| registers | Register addresses. |
| buf | Data to write. |
| std::system_error | on error. |
Definition at line 826 of file master.hpp.
References try_write_registers(), and 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 841 of file master.hpp.
References idfxx::timeout, try_write_registers(), 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 859 of file master.hpp.
References try_write_registers(), and 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 875 of file master.hpp.
References idfxx::timeout, try_write_registers(), and idfxx::unwrap().