Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 33) sorted by relevance

12

/hardware/bsp/intel/peripheral/libmraa/examples/
Dspi_max7219.c34 mraa_spi_context spi; in main() local
35 spi = mraa_spi_init(1); in main()
36 if (spi == NULL) { in main()
43 mraa_spi_frequency(spi, 400000); in main()
44 mraa_spi_lsbmode(spi, 0); in main()
47 if (mraa_spi_bit_per_word(spi, 16) != MRAA_SUCCESS) { in main()
52 mraa_spi_write_word(spi, 0x0900); // Do not decode bits in main()
53 mraa_spi_write_word(spi, 0x0a05); // Brightness of LEDs in main()
54 mraa_spi_write_word(spi, 0x0b07); // Show all Scan Lines in main()
55 mraa_spi_write_word(spi, 0x0c01); // Display on in main()
[all …]
Dspi_mcp4261.c34 mraa_spi_context spi; in main() local
35 spi = mraa_spi_init(0); in main()
44 recv = mraa_spi_write_buf(spi, data, 2); in main()
51 recv = mraa_spi_write_buf(spi, data, 2); in main()
/hardware/bsp/intel/peripheral/libmraa/examples/java/
DSpiMAX7219.java45 Spi spi = new Spi(1); in main() local
47 spi.frequency(400000); in main()
48 spi.lsbmode(false); in main()
50 if(spi.bitPerWord(16) != Result.SUCCESS) { in main()
55 spi.write_word(0x0900); //Do not decode bits in main()
56 spi.write_word(0x0a05); // Brightness of LEDs in main()
57 spi.write_word(0x0b07); // Show all Scan Lines in main()
58 spi.write_word(0x0c01); // Display on in main()
59 spi.write_word(0x0f00); // Testmode off in main()
66 spi.write(buf.array()); in main()
[all …]
DSpiMCP4261.java42 Spi spi = new Spi(0); in main() local
49 byte[] recv = spi.write(data); in main()
56 byte[] recv = spi.write(data); in main()
/hardware/bsp/intel/peripheral/libmraa/examples/c++/
DSpi-pot.cpp48 mraa::Spi* spi; in main() local
50 spi = new mraa::Spi(0); in main()
59 recv = spi->write(data, 2); in main()
69 if (spi->transfer(data, rxBuf, 2) == mraa::SUCCESS) { in main()
76 delete spi; in main()
/hardware/intel/bootstub/
DVERSION5 0.8 changed default spi clock to 100mhz Aug 12, 2009
7 0.6 optimized spi uart and initrd relocation performance. May 26, 2009
9 0.4 spi suppression flag. July 19, 2008
10 0.3 spi on select 0x2. June 17, 2008
11 0.2 spi support on. June 10, 2008
Dbootstub.spec35 - changed default spi clock to 100mhz
41 - improved spi uart output performance
Dbootstub.mk4 BOOTSTUB_SRC_FILES := bootstub.c sfi.c ssp-uart.c imr_toc.c spi-uart.c
/hardware/bsp/intel/peripheral/libmraa/src/x86/
Dintel_galileo_rev_d.c290 b->pins[10].spi.pinmap = 1; in mraa_intel_galileo_rev_d()
291 b->pins[10].spi.mux_total = 1; in mraa_intel_galileo_rev_d()
292 b->pins[10].spi.mux[0].pin = 42; in mraa_intel_galileo_rev_d()
293 b->pins[10].spi.mux[0].value = 0; in mraa_intel_galileo_rev_d()
306 b->pins[11].spi.pinmap = 1; in mraa_intel_galileo_rev_d()
307 b->pins[11].spi.mux_total = 1; in mraa_intel_galileo_rev_d()
308 b->pins[11].spi.mux[0].pin = 43; in mraa_intel_galileo_rev_d()
309 b->pins[11].spi.mux[0].value = 0; in mraa_intel_galileo_rev_d()
317 b->pins[12].spi.pinmap = 1; in mraa_intel_galileo_rev_d()
318 b->pins[12].spi.mux_total = 1; in mraa_intel_galileo_rev_d()
[all …]
Dintel_edison_fab_c.c57 mraa_intel_edision_pindef_t spi; member
468 mraa_intel_edison_spi_init_post(mraa_spi_context spi) in mraa_intel_edison_spi_init_post() argument
869 b->pins[pos].spi.pinmap = 5; in mraa_intel_edison_miniboard()
870 b->pins[pos].spi.mux_total = 0; in mraa_intel_edison_miniboard()
877 b->pins[pos].spi.pinmap = 5; in mraa_intel_edison_miniboard()
878 b->pins[pos].spi.mux_total = 0; in mraa_intel_edison_miniboard()
885 b->pins[pos].spi.pinmap = 5; in mraa_intel_edison_miniboard()
886 b->pins[pos].spi.mux_total = 0; in mraa_intel_edison_miniboard()
956 b->pins[pos].spi.pinmap = 5; in mraa_intel_edison_miniboard()
957 b->pins[pos].spi.mux_total = 0; in mraa_intel_edison_miniboard()
[all …]
Dintel_galileo_rev_g.c566 b->pins[10].spi.parent_id = 1; in mraa_intel_galileo_gen2()
567 b->pins[10].spi.mux_total = 1; in mraa_intel_galileo_gen2()
568 b->pins[10].spi.mux[0].pin = 74; in mraa_intel_galileo_gen2()
569 b->pins[10].spi.mux[0].value = 0; in mraa_intel_galileo_gen2()
592 b->pins[11].spi.pinmap = 1; in mraa_intel_galileo_gen2()
593 b->pins[11].spi.mux_total = 3; in mraa_intel_galileo_gen2()
594 b->pins[11].spi.mux[0].pin = 72; in mraa_intel_galileo_gen2()
595 b->pins[11].spi.mux[0].value = 0; in mraa_intel_galileo_gen2()
596 b->pins[11].spi.mux[1].pin = 44; in mraa_intel_galileo_gen2()
597 b->pins[11].spi.mux[1].value = 1; in mraa_intel_galileo_gen2()
[all …]
Dintel_minnow_byt_compatible.c65 if (caps.spi) { in mraa_set_pininfo()
66 pin_info->spi.mux_total = 0; in mraa_set_pininfo()
/hardware/bsp/intel/peripheral/libmraa/src/spi/
Dspi.c82 if (plat->pins[pos].spi.mux_total > 0) { in mraa_spi_init()
83 if (mraa_setup_mux_mapped(plat->pins[pos].spi) != MRAA_SUCCESS) { in mraa_spi_init()
90 if (plat->pins[pos].spi.mux_total > 0) { in mraa_spi_init()
91 if (mraa_setup_mux_mapped(plat->pins[pos].spi) != MRAA_SUCCESS) { in mraa_spi_init()
98 if (plat->pins[pos].spi.mux_total > 0) { in mraa_spi_init()
99 if (mraa_setup_mux_mapped(plat->pins[pos].spi) != MRAA_SUCCESS) { in mraa_spi_init()
106 if (plat->pins[pos].spi.mux_total > 0) { in mraa_spi_init()
107 if (mraa_setup_mux_mapped(plat->pins[pos].spi) != MRAA_SUCCESS) { in mraa_spi_init()
/hardware/bsp/intel/peripheral/libmraa/
DAndroid.mk27 src/spi/spi.c \
/hardware/bsp/intel/peripheral/libmraa/src/arm/
Draspberry_pi.c390 b->pins[19].spi.pinmap = 0; in mraa_raspberry_pi()
391 b->pins[19].spi.mux_total = 0; in mraa_raspberry_pi()
400 b->pins[21].spi.pinmap = 0; in mraa_raspberry_pi()
401 b->pins[21].spi.mux_total = 0; in mraa_raspberry_pi()
412 b->pins[23].spi.pinmap = 0; in mraa_raspberry_pi()
413 b->pins[23].spi.mux_total = 0; in mraa_raspberry_pi()
419 b->pins[24].spi.pinmap = 0; in mraa_raspberry_pi()
420 b->pins[24].spi.mux_total = 0; in mraa_raspberry_pi()
429 b->pins[26].spi.pinmap = 0; in mraa_raspberry_pi()
430 b->pins[26].spi.mux_total = 0; in mraa_raspberry_pi()
/hardware/bsp/intel/peripheral/libmraa/docs/
Dbeaglebone.md32 not work. mraa will activate spi on 3.8.13 if it finds out that spi is not yet
39 which gpio/serial/i2c/spi is connected where but there is currently no support
51 Correctly configuring i2c/spi/serial can get a little challenging as some pins
Dindex.md28 | @ref spi.h "spi" | @ref mraa::Spi "Spi class" |
Dindex.java.md28 | @ref spi.h "spi" | @ref mraa::Spi "Spi class" |
Dchangelog.md67 * 16bit spi iunctions added
74 * improve i2c/spi write/read API for python & nodejs
96 * spi mraa_spi_bit_per_word fix
97 * new spi transfer function
/hardware/bsp/intel/peripheral/libmraa/include/
Dmraa_internal_types.h160 mraa_boolean_t spi:1; /**< Is the pin spi capable */ member
218 mraa_pin_t spi; /**< spi bus/pin */ member
Dmraa_adv_func.h85 mraa_result_t (*spi_init_post) (mraa_spi_context spi);
/hardware/bsp/intel/peripheral/libmraa/src/javascript/
Dpackage.json.cmake4 "keywords":["gpio", "edison","galileo","io", "mraajs", "spi", "i2c", "minnow", "intel"],
/hardware/bsp/intel/peripheral/libupm/src/
Dpackage.json.in4 …"keywords":["intel", "edison", "galileo", "minnow", "io", "mraajs", "upmjs", "gpio", "spi", "i2c",…
/hardware/bsp/intel/peripheral/libupm/docs/
Dmax31855.md12 This is a spi module so we will use the mraa spi functions to build our module.
68 @snippet src/max31855/max31855.cxx spi
/hardware/bsp/intel/peripheral/libmraa/src/
DCMakeLists.txt16 ${PROJECT_SOURCE_DIR}/src/spi/spi.c
139 set (DOCCLASSES aio gpio i2c pwm spi uart)

12