Home
last modified time | relevance | path

Searched refs:i2c (Results 1 – 25 of 41) sorted by relevance

12

/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_sofia_3gr.c60 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 …]
Dintel_nuc5.c96 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()
Dintel_de3815.c102 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()
Dintel_minnow_byt_compatible.c53 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()
Dintel_edison_fab_c.c56 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 …]
Dintel_galileo_rev_d.c385 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/
DBmp85.java43 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 …]
DI2cCompass.java100 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/
Di2c_HMC5883L.c87 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 …]
Dmraa-i2c.c110 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 …]
DCMakeLists.txt13 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++/
DI2c-compass.cpp102 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/
Dmicsv89.cxx33 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()
Dmicsv89.h125 mraa::I2c* i2c; variable
/hardware/bsp/intel/peripheral/libmraa/docs/
Dintel_nuc5.md6 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 |
Dintel_de3815.md13 **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 |
Dchangelog.md28 * 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
Dminnow_max.md28 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 |
Dgalileorevh.md9 - 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
Dinternals.md11 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
Di2c.txt2 any calls on i2c, in case another application or even thread changed the addres
/hardware/bsp/intel/peripheral/libmraa/
DAndroid.mk25 src/i2c/i2c.c \
/hardware/bsp/intel/peripheral/libupm/src/grovemd/
DCMakeLists.txt2 set (libdescription "upm grove i2c motor driver module")
/hardware/bsp/intel/peripheral/libmraa/src/i2c/
Di2c.c166 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/
Dmraa_internal_types.h161 mraa_boolean_t i2c:1; /**< Is the pin i2c capable */ member
217 mraa_pin_t i2c; /**< i2c bus/pin */ member

12