|
HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
|
I2C slave configuration structure. More...
#include <EspTypes_I2C.h>
Public Member Functions | |
| hf_i2c_slave_config_t () noexcept | |
| Default constructor with sensible defaults. | |
Public Attributes | |
| i2c_port_t | i2c_port |
| I2C port number. | |
| hf_i2c_clock_source_t | clk_source |
| Clock source selection. | |
| hf_pin_num_t | scl_io_num |
| SCL GPIO pin. | |
| hf_pin_num_t | sda_io_num |
| SDA GPIO pin. | |
| uint16_t | slave_addr |
| Slave address. | |
| hf_i2c_address_bits_t | addr_bit_len |
| Address bit length. | |
| uint32_t | clk_speed_hz |
| SCL clock frequency. | |
| uint32_t | send_buf_depth |
| Send buffer depth. | |
| uint32_t | receive_buf_depth |
| Receive buffer depth. | |
| uint32_t | intr_priority |
| Interrupt priority. | |
| bool | enable_internal_pullup |
| Enable internal pull-ups. | |
| bool | broadcast_en |
| Enable general call address (0x00) response. | |
| bool | allow_pd |
| Allow power down in sleep modes. | |
I2C slave configuration structure.
Configuration for creating an I2C slave device.
|
inlinenoexcept |
Default constructor with sensible defaults.
| hf_i2c_address_bits_t hf_i2c_slave_config_t::addr_bit_len |
Address bit length.
| bool hf_i2c_slave_config_t::allow_pd |
Allow power down in sleep modes.
| bool hf_i2c_slave_config_t::broadcast_en |
Enable general call address (0x00) response.
| hf_i2c_clock_source_t hf_i2c_slave_config_t::clk_source |
Clock source selection.
| uint32_t hf_i2c_slave_config_t::clk_speed_hz |
SCL clock frequency.
| bool hf_i2c_slave_config_t::enable_internal_pullup |
Enable internal pull-ups.
| i2c_port_t hf_i2c_slave_config_t::i2c_port |
I2C port number.
| uint32_t hf_i2c_slave_config_t::intr_priority |
Interrupt priority.
| uint32_t hf_i2c_slave_config_t::receive_buf_depth |
Receive buffer depth.
| hf_pin_num_t hf_i2c_slave_config_t::scl_io_num |
SCL GPIO pin.
| hf_pin_num_t hf_i2c_slave_config_t::sda_io_num |
SDA GPIO pin.
| uint32_t hf_i2c_slave_config_t::send_buf_depth |
Send buffer depth.
| uint16_t hf_i2c_slave_config_t::slave_addr |
Slave address.