Lines Matching refs:periph_addr
137 static int smbus_stm32_quick(const struct device *dev, uint16_t periph_addr, in smbus_stm32_quick() argument
144 return i2c_write(config->i2c_dev, NULL, 0, periph_addr); in smbus_stm32_quick()
146 return i2c_read(config->i2c_dev, NULL, 0, periph_addr); in smbus_stm32_quick()
153 static int smbus_stm32_byte_write(const struct device *dev, uint16_t periph_addr, uint8_t command) in smbus_stm32_byte_write() argument
157 return i2c_write(config->i2c_dev, &command, sizeof(command), periph_addr); in smbus_stm32_byte_write()
160 static int smbus_stm32_byte_read(const struct device *dev, uint16_t periph_addr, uint8_t *byte) in smbus_stm32_byte_read() argument
164 return i2c_read(config->i2c_dev, byte, sizeof(*byte), periph_addr); in smbus_stm32_byte_read()
167 static int smbus_stm32_byte_data_write(const struct device *dev, uint16_t periph_addr, in smbus_stm32_byte_data_write() argument
176 return i2c_write(config->i2c_dev, buffer, ARRAY_SIZE(buffer), periph_addr); in smbus_stm32_byte_data_write()
179 static int smbus_stm32_byte_data_read(const struct device *dev, uint16_t periph_addr, in smbus_stm32_byte_data_read() argument
184 return i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), byte, in smbus_stm32_byte_data_read()
188 static int smbus_stm32_word_data_write(const struct device *dev, uint16_t periph_addr, in smbus_stm32_word_data_write() argument
197 return i2c_write(config->i2c_dev, buffer, ARRAY_SIZE(buffer), periph_addr); in smbus_stm32_word_data_write()
200 static int smbus_stm32_word_data_read(const struct device *dev, uint16_t periph_addr, in smbus_stm32_word_data_read() argument
206 result = i2c_write_read(config->i2c_dev, periph_addr, &command, sizeof(command), word, in smbus_stm32_word_data_read()
213 static int smbus_stm32_pcall(const struct device *dev, uint16_t periph_addr, uint8_t command, in smbus_stm32_pcall() argument
223 result = i2c_write_read(config->i2c_dev, periph_addr, buffer, ARRAY_SIZE(buffer), recv_word, in smbus_stm32_pcall()
230 static int smbus_stm32_block_write(const struct device *dev, uint16_t periph_addr, uint8_t command, in smbus_stm32_block_write() argument
247 return i2c_transfer(config->i2c_dev, messages, ARRAY_SIZE(messages), periph_addr); in smbus_stm32_block_write()