/hardware/bsp/intel/peripheral/libmraa/src/x86/ |
D | intel_sofia_3gr.c | 60 b->pins[0].i2c.pinmap = 1; in mraa_intel_sofia_3gr() 61 b->pins[0].i2c.mux_total = 0; in mraa_intel_sofia_3gr() 65 b->pins[1].i2c.pinmap = 1; in mraa_intel_sofia_3gr() 66 b->pins[1].i2c.mux_total = 0; in mraa_intel_sofia_3gr() 70 b->pins[2].i2c.pinmap = 1; in mraa_intel_sofia_3gr() 71 b->pins[2].i2c.mux_total = 0; in mraa_intel_sofia_3gr() 75 b->pins[3].i2c.pinmap = 1; in mraa_intel_sofia_3gr() 76 b->pins[3].i2c.mux_total = 0; in mraa_intel_sofia_3gr() 80 b->pins[4].i2c.pinmap = 1; in mraa_intel_sofia_3gr() 81 b->pins[4].i2c.mux_total = 0; in mraa_intel_sofia_3gr() [all …]
|
D | intel_nuc5.c | 96 b->pins[12].i2c.pinmap = 1; in mraa_intel_nuc5() 97 b->pins[12].i2c.mux_total = 0; in mraa_intel_nuc5() 101 b->pins[13].i2c.pinmap = 1; in mraa_intel_nuc5() 102 b->pins[13].i2c.mux_total = 0; in mraa_intel_nuc5() 106 b->pins[14].i2c.pinmap = 1; in mraa_intel_nuc5() 107 b->pins[14].i2c.mux_total = 0; in mraa_intel_nuc5() 111 b->pins[15].i2c.pinmap = 1; in mraa_intel_nuc5() 112 b->pins[15].i2c.mux_total = 0; in mraa_intel_nuc5()
|
D | intel_de3815.c | 102 b->pins[12].i2c.pinmap = 1; in mraa_intel_de3815() 103 b->pins[12].i2c.mux_total = 0; in mraa_intel_de3815() 107 b->pins[13].i2c.pinmap = 1; in mraa_intel_de3815() 108 b->pins[13].i2c.mux_total = 0; in mraa_intel_de3815() 112 b->pins[14].i2c.pinmap = 1; in mraa_intel_de3815() 113 b->pins[14].i2c.mux_total = 0; in mraa_intel_de3815() 117 b->pins[15].i2c.pinmap = 1; in mraa_intel_de3815() 118 b->pins[15].i2c.mux_total = 0; in mraa_intel_de3815()
|
D | intel_minnow_byt_compatible.c | 53 if (caps.i2c) { in mraa_set_pininfo() 54 pin_info->i2c.pinmap = 1; in mraa_set_pininfo() 55 pin_info->i2c.mux_total = 0; in mraa_set_pininfo()
|
D | intel_edison_fab_c.c | 56 mraa_intel_edision_pindef_t i2c; member 845 b->pins[pos].i2c.pinmap = 1; in mraa_intel_edison_miniboard() 846 b->pins[pos].i2c.mux_total = 0; in mraa_intel_edison_miniboard() 853 b->pins[pos].i2c.pinmap = 1; in mraa_intel_edison_miniboard() 854 b->pins[pos].i2c.mux_total = 0; in mraa_intel_edison_miniboard() 861 b->pins[pos].i2c.pinmap = 1; in mraa_intel_edison_miniboard() 862 b->pins[pos].i2c.mux_total = 0; in mraa_intel_edison_miniboard() 927 b->pins[pos].i2c.pinmap = 1; in mraa_intel_edison_miniboard() 928 b->pins[pos].i2c.mux_total = 0; in mraa_intel_edison_miniboard() 1397 b->pins[18].i2c.pinmap = 1; in mraa_intel_edison_fab_c() [all …]
|
D | intel_galileo_rev_d.c | 385 b->pins[18].i2c.pinmap = 1; in mraa_intel_galileo_rev_d() 386 b->pins[18].i2c.mux_total = 1; in mraa_intel_galileo_rev_d() 387 b->pins[18].i2c.mux[0].pin = 29; in mraa_intel_galileo_rev_d() 388 b->pins[18].i2c.mux[0].value = 0; in mraa_intel_galileo_rev_d() 404 b->pins[19].i2c.pinmap = 1; in mraa_intel_galileo_rev_d() 405 b->pins[19].i2c.mux_total = 1; in mraa_intel_galileo_rev_d() 406 b->pins[19].i2c.mux[0].pin = 29; in mraa_intel_galileo_rev_d() 407 b->pins[19].i2c.mux[0].value = 0; in mraa_intel_galileo_rev_d()
|
/hardware/bsp/intel/peripheral/libmraa/examples/java/ |
D | Bmp85.java | 43 mraa.I2c i2c = new mraa.I2c(0); in main() local 44 i2c.address((byte)0x77); in main() 45 i2c.writeByte((byte)0xd0); in main() 49 i2c.read(data); in main() 52 i2c.writeReg((byte)0xf4, (byte)0x2e); in main() 54 if (i2c.readReg((byte)0xd0) != 0x55) { in main() 59 i2c.writeReg((byte)0xf4, (byte)0x2e); in main() 63 System.out.println(i2c.readWordReg((byte)0xf6)); in main() 68 i2c.write(buf); in main() 70 i2c.writeByte((byte)0xf6); in main() [all …]
|
D | I2cCompass.java | 100 I2c i2c = new I2c(0); in main() local 102 i2c.address(HMC5883L_I2C_ADDR); in main() 105 i2c.write(conf_buf); in main() 108 i2c.address(HMC5883L_I2C_ADDR); in main() 111 i2c.write(conf_buf); in main() 114 i2c.address(HMC5883L_I2C_ADDR); in main() 115 i2c.writeByte(HMC5883L_DATA_REG); in main() 117 i2c.address(HMC5883L_I2C_ADDR); in main() 118 i2c.read(rx_tx_buf); in main()
|
/hardware/bsp/intel/peripheral/libmraa/examples/ |
D | i2c_HMC5883L.c | 87 mraa_i2c_context i2c; in main() local 88 i2c = mraa_i2c_init(0); in main() 90 mraa_i2c_address(i2c, HMC5883L_I2C_ADDR); in main() 93 mraa_i2c_write(i2c, rx_tx_buf, 2); in main() 96 mraa_i2c_address(i2c, HMC5883L_I2C_ADDR); in main() 99 mraa_i2c_write(i2c, rx_tx_buf, 2); in main() 106 mraa_i2c_address(i2c, HMC5883L_I2C_ADDR); in main() 108 mraa_i2c_read_byte_data(i2c, HMC5883L_DATA_REG+i); in main() 112 mraa_i2c_address(i2c, HMC5883L_I2C_ADDR); in main() 113 mraa_i2c_write_byte(i2c, HMC5883L_DATA_REG); in main() [all …]
|
D | mraa-i2c.c | 110 mraa_i2c_context i2c = mraa_i2c_init(bus); in i2c_get() local 111 if (i2c == NULL) { in i2c_get() 114 status = mraa_i2c_address(i2c, device_address); in i2c_get() 118 status = mraa_i2c_write_byte(i2c, register_address); in i2c_get() 122 status = mraa_i2c_read(i2c, data, 1) == 1 ? MRAA_SUCCESS : MRAA_ERROR_UNSPECIFIED; in i2c_get() 127 mraa_i2c_stop(i2c); in i2c_get() 135 mraa_i2c_context i2c = mraa_i2c_init(bus); in i2c_set() local 136 if (i2c == NULL) { in i2c_set() 139 status = mraa_i2c_address(i2c, device_address); in i2c_set() 144 status = mraa_i2c_write_byte_data(i2c, data, register_address); in i2c_set() [all …]
|
D | CMakeLists.txt | 13 add_executable (mraa-i2c mraa-i2c.c) 18 # FIXME Hack to access mraa internal types used by mraa-i2c 34 target_link_libraries (mraa-i2c mraa)
|
/hardware/bsp/intel/peripheral/libmraa/examples/c++/ |
D | I2c-compass.cpp | 102 mraa::I2c* i2c; in main() local 103 i2c = new mraa::I2c(0); in main() 105 i2c->address(HMC5883L_I2C_ADDR); in main() 108 i2c->write(rx_tx_buf, 2); in main() 111 i2c->address(HMC5883L_I2C_ADDR); in main() 114 i2c->write(rx_tx_buf, 2); in main() 119 i2c->address(HMC5883L_I2C_ADDR); in main() 120 i2c->writeByte(HMC5883L_DATA_REG); in main() 122 i2c->address(HMC5883L_I2C_ADDR); in main() 123 i2c->read(rx_tx_buf, DATA_REG_SIZE); in main() [all …]
|
/hardware/bsp/intel/peripheral/libupm/src/micsv89/ |
D | micsv89.cxx | 33 i2c = new mraa::I2c(bus); in MICSV89() 34 if(i2c->frequency(mraa::I2C_STD) != mraa::SUCCESS){ in MICSV89() 45 if(i2c->address(m_address) != mraa::SUCCESS){ in update() 49 if(i2c->write(tx_buf, 3) != mraa::SUCCESS){ in update() 54 if(i2c->address(m_address) != mraa::SUCCESS){ in update() 58 if(i2c->read(rx_buf, 6) != 6){ in update() 82 delete i2c; in ~MICSV89()
|
D | micsv89.h | 125 mraa::I2c* i2c; variable
|
/hardware/bsp/intel/peripheral/libmraa/docs/ |
D | intel_nuc5.md | 6 disabled, currently in Linux (as of 4.2). Both i2c buses are currently 20 **I2C** Depending on your system you may need to load `i2c-dev` 41 | 12 | 13 | I2C0_CLK | /dev/i2c-0 SCL | 42 | 13 | 14 | I2C0_DATA | /dev/i2c-0 SDA | 43 | 14 | 15 | I2C1_CLK | /dev/i2c-1 SCL | 44 | 15 | 16 | I2C1_DATA | /dev/i2c-1-SDA |
|
D | intel_de3815.md | 13 **I2C** Depending on your system you may need to load `i2c-dev` 33 | 12 | 13 | I2C0_CLK | /dev/i2c-0 SCL | 34 | 13 | 14 | I2C0_DATA | /dev/i2c-0 SDA | 35 | 14 | 15 | I2C1_CLK | /dev/i2c-1 SCL | 36 | 15 | 16 | I2C1_DATA | /dev/i2c-1-SDA |
|
D | changelog.md | 28 * 5th Generation NUC i2c support 32 * Minnowboard i2c fix 35 * Better i2c bus detection on DE3815 & mmax 38 * DE3815 i2c fix when using different kernels 74 * improve i2c/spi write/read API for python & nodejs 98 * i2c object api uses uint8_t 99 * i2c readReg() calls added 100 * edison i2c bus now defaults to a sensible value 113 * Boost Allowable i2c busses to 12 189 * i2c read calls don't use const char* and i2c write calls do
|
D | minnow_max.md | 28 Documentation shows i2c on bus #5, ACPI shows it on bus #6, but driver uses 45 | 13 | 13 | I2C_SCL | 243 | /dev/i2c-7 | 47 | 15 | 15 | I2C_SDA | 242 | /dev/i2c-7 |
|
D | galileorevh.md | 9 - i2c is set at 400Khz speed cannot be changed without reloading kernel module, 11 be set to 1 in order to set the i2c bus speed to 100Khz 12 - i2c bus is shared with multiple devices in kernel space, scanning it usually
|
D | internals.md | 11 the API with the execption of i2c/spi bus numbering as they are typically not 15 the bus in the pinmapper. For example edison uses i2c #6 but since there is 22 In libmraa, all code is split into 7 modules, src/{i2c, spi, gpio, uart, pwm, 57 ### i2c ### subsection in libmraa Internals {#internals} 60 kernel driver i2c-dev. For more details the i2c/dev-interface documentation 64 i2c/smbus.c. This library simply makes it easier for us to handle the error 65 conditions that can arrise when writing on i2c buses. Essentially the API is 68 Careful - on alot of platforms i2cdetect will often crash. To findi your i2c 126 one and has a good kernel module for it. Extra i2c/spi ADCs can be supported
|
D | i2c.txt | 2 any calls on i2c, in case another application or even thread changed the addres
|
/hardware/bsp/intel/peripheral/libmraa/ |
D | Android.mk | 25 src/i2c/i2c.c \
|
/hardware/bsp/intel/peripheral/libupm/src/grovemd/ |
D | CMakeLists.txt | 2 set (libdescription "upm grove i2c motor driver module")
|
/hardware/bsp/intel/peripheral/libmraa/src/i2c/ |
D | i2c.c | 166 if (board->pins[pos].i2c.mux_total > 0) { in mraa_i2c_init() 167 if (mraa_setup_mux_mapped(board->pins[pos].i2c) != MRAA_SUCCESS) { in mraa_i2c_init() 174 if (board->pins[pos].i2c.mux_total > 0) { in mraa_i2c_init() 175 if (mraa_setup_mux_mapped(board->pins[pos].i2c) != MRAA_SUCCESS) { in mraa_i2c_init()
|
/hardware/bsp/intel/peripheral/libmraa/include/ |
D | mraa_internal_types.h | 161 mraa_boolean_t i2c:1; /**< Is the pin i2c capable */ member 217 mraa_pin_t i2c; /**< i2c bus/pin */ member
|