File: i2c_mux_pca954x.h

package info (click to toggle)
qemu 1%3A7.2%2Bdfsg-7%2Bdeb12u14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 289,336 kB
  • sloc: ansic: 2,701,936; pascal: 112,708; python: 62,697; sh: 50,281; asm: 48,732; makefile: 17,260; cpp: 9,441; perl: 8,084; xml: 2,911; objc: 1,870; php: 1,299; tcl: 1,188; yacc: 604; lex: 363; sql: 71; awk: 35; sed: 11; javascript: 7
file content (19 lines) | stat: -rw-r--r-- 430 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef QEMU_I2C_MUX_PCA954X_H
#define QEMU_I2C_MUX_PCA954X_H

#include "hw/i2c/i2c.h"

#define TYPE_PCA9546 "pca9546"
#define TYPE_PCA9548 "pca9548"

/**
 * Retrieves the i2c bus associated with the specified channel on this i2c
 * mux.
 * @mux: an i2c mux device.
 * @channel: the i2c channel requested
 *
 * Returns: a pointer to the associated i2c bus.
 */
I2CBus *pca954x_i2c_get_bus(I2CSlave *mux, uint8_t channel);

#endif