Lines Matching refs:bus
64 int i, bus; in print_bus() local
76 bus = i; in print_bus()
81 bus = mraa_get_sub_platform_id(i); in print_bus()
88 fprintf(stdout, "Bus %3d: id=%02d type=%s ", bus, id, busType); in print_bus()
107 i2c_get(int bus, uint8_t device_address, uint8_t register_address, uint8_t* data) in i2c_get() argument
110 mraa_i2c_context i2c = mraa_i2c_init(bus); in i2c_get()
132 i2c_set(int bus, uint8_t device_address, uint8_t register_address, uint8_t data) in i2c_set() argument
135 mraa_i2c_context i2c = mraa_i2c_init(bus); in i2c_set()
155 i2c_detect_devices(int bus) in i2c_detect_devices() argument
158 mraa_i2c_context i2c = mraa_i2c_init(bus); in i2c_detect_devices()
167 if (i2c_get(bus, addr, 0, &value) == MRAA_SUCCESS) in i2c_detect_devices()
190 int bus = strtol(argv[2], NULL, 0); in process_command() local
191 i2c_detect_devices(bus); in process_command()
199 int bus = strtol(argv[2], NULL, 0); in process_command() local
204 if (i2c_get(bus, device_address, register_address, &data) == MRAA_SUCCESS) { in process_command()
217 int bus = strtol(argv[2], NULL, 0); in process_command() local
223 if (i2c_set(bus, device_address, register_address, value) != MRAA_SUCCESS) { in process_command()