Home
last modified time | relevance | path

Searched refs:m_spi (Results 1 – 16 of 16) sorted by relevance

/hardware/bsp/intel/peripheral/libmraa/api/mraa/
Dspi.hpp66 m_spi = mraa_spi_init(bus); in Spi()
68 if (m_spi == NULL) { in Spi()
78 mraa_spi_stop(m_spi); in ~Spi()
90 return (Result) mraa_spi_mode(m_spi, (mraa_spi_mode_t) mode); in mode()
102 return (Result) mraa_spi_frequency(m_spi, hz); in frequency()
114 return mraa_spi_write(m_spi, (uint8_t) data); in writeByte()
126 return mraa_spi_write_word(m_spi, (uint16_t) data); in write_word()
141 return mraa_spi_write_buf(m_spi, txBuf, length); in write()
157 return mraa_spi_write_buf_word(m_spi, txBuf, length); in write_word()
174 return (Result) mraa_spi_transfer_buf(m_spi, txBuf, rxBuf, length); in transfer()
[all …]
/hardware/bsp/intel/peripheral/libupm/src/max31723/
Dmax31723.cxx34 MAX31723::MAX31723 (int csn) : m_csnPinCtx(csn), m_spi(0) { in MAX31723()
47 m_spi.mode (mraa::SPI_MODE2); in MAX31723()
85 sensorData = m_spi.write(data, 2); in readRegister()
99 sensorData = m_spi.write(buffer, 2); in writeRegister()
Dmax31723.h100 mraa::Spi m_spi; variable
/hardware/bsp/intel/peripheral/libupm/src/nrf24l01/
Dnrf24l01.cxx38 : m_csnPinCtx(cs), m_cePinCtx(ce), m_spi(0) in NRF24L01()
100 m_spi.writeByte(W_TX_PAYLOAD); // Write cmd to write payload in send()
184 m_spi.writeByte(R_RX_PAYLOAD); in getData()
391 m_spi.writeByte(W_TX_PAYLOAD); // Write cmd to write payload in sendBeaconingMsg()
415 datain[i] = m_spi.writeByte(dataout[i]); in writeBytes()
417 m_spi.writeByte(dataout[i]); in writeBytes()
425 m_spi.writeByte(W_REGISTER | (REGISTER_MASK & reg)); in setRegister()
426 m_spi.writeByte(value); in setRegister()
435 m_spi.writeByte(R_REGISTER | (REGISTER_MASK & reg)); in getRegister()
436 data = m_spi.writeByte(data); in getRegister()
[all …]
Dnrf24l01.h416 mraa::Spi m_spi; variable
/hardware/bsp/intel/peripheral/libupm/src/st7735/
Dst7735.cxx39 m_rSTPinCtx(rst), m_rSPinCtx(rs), m_spi(0) { in ST7735()
52 m_spi.frequency(15 * 1000000); in initModule()
74 error = m_spi.frequency(15 * 1000000); in initModule()
85 m_spi.writeByte(value); in write()
91 m_spi.writeByte(value); in data()
131 m_spi.write(m_spiBuffer, 4); in setAddrWindow()
140 m_spi.write(m_spiBuffer, 4); in setAddrWindow()
160 m_spi.write(&m_map[fragment * fragmentSize], fragmentSize); in refresh()
Dst7735.h628 mraa::Spi m_spi;
/hardware/bsp/intel/peripheral/libupm/src/lpd8806/
Dlpd8806.cxx35 LPD8806::LPD8806 (uint16_t pixelCount, uint8_t csn) : m_csnPinCtx(csn), m_spi(0) { in LPD8806()
50 m_spi.mode (mraa::SPI_MODE0); in LPD8806()
55 m_spi.writeByte (0); in LPD8806()
97 m_spi.writeByte (*ptr++); in show()
Dlpd8806.h103 mraa::Spi m_spi; variable
/hardware/bsp/intel/peripheral/libupm/src/max5487/
Dmax5487.cxx34 MAX5487::MAX5487 (int csn) : m_csnPinCtx(csn), m_spi(0) { in MAX5487()
60 uint8_t* retData = m_spi.write(data, 2); in setWiperA()
74 uint8_t* retData = m_spi.write(data, 2); in setWiperB()
Dmax5487.h99 mraa::Spi m_spi; variable
/hardware/bsp/intel/peripheral/libupm/src/nrf8001/
Dhal_aci_tl.cxx340 a_pins->m_spi = mraa_spi_init (0); in hal_aci_tl_init()
341 if (a_pins->m_spi == NULL) { in hal_aci_tl_init()
346 mraa_spi_frequency (a_pins->m_spi, 2000000); in hal_aci_tl_init()
347 mraa_spi_mode (a_pins->m_spi, MRAA_SPI_MODE0); in hal_aci_tl_init()
431 reversed = mraa_spi_write (a_pins_local_ptr->m_spi, REVERSE_BITS (aci_byte)); in spi_readwrite()
Dhal_aci_tl.h74 mraa_spi_context m_spi; member
Dnrf8001.cxx61 error = mraa_spi_stop(aci->aci_pins.m_spi); in close_local_interfaces()
/hardware/bsp/intel/peripheral/libupm/src/lcd/
Deboled.cxx38 m_spi(spi), m_gpioCD(CD), m_gpioRST(reset) in EBOLED()
51 m_spi.frequency(10000000); in EBOLED()
553 m_spi.writeByte(cmd); in command()
559 m_spi.write_word(data); in data()
Deboled.h369 mraa::Spi m_spi; variable