SPIClass¶
詳細情報¶
メンバー¶
SPIClass()¶
SPIClass::SPIClass(uint8_t spi_bus=HSPI)
引数
- uint8_t
spi_bus
begin()¶
void SPIClass::begin(int8_t sck=-1, int8_t miso=-1, int8_t mosi=-1, int8_t ss=-1)
引数
- int8_t
sck
- int8_t
miso
- int8_t
mosi
- int8_t
ss
end()¶
void SPIClass::end()
setHwCs()¶
void SPIClass::setHwCs(bool use)
引数
- bool
use
setBitOrder()¶
void SPIClass::setBitOrder(uint8_t bitOrder)
引数
- uint8_t
bitOrder
setDataMode()¶
void SPIClass::setDataMode(uint8_t dataMode)
引数
- uint8_t
dataMode
setFrequency()¶
void SPIClass::setFrequency(uint32_t freq)
引数
- uint32_t
freq
setClockDivider()¶
void SPIClass::setClockDivider(uint32_t clockDiv)
引数
- uint32_t
clockDiv
getClockDivider()¶
uint32_t SPIClass::getClockDivider()
戻り値
uint32_t
beginTransaction()¶
void SPIClass::beginTransaction(SPISettings settings)
引数
- SPISettings
settings
endTransaction()¶
void SPIClass::endTransaction(void)
transfer()¶
void SPIClass::transfer(uint8_t *data, uint32_t size)
引数
- uint8_t*
data
- uint32_t
size
transfer()¶
uint8_t SPIClass::transfer(uint8_t data)
引数
- uint8_t
data
戻り値
uint8_t
transfer16()¶
uint16_t SPIClass::transfer16(uint16_t data)
引数
- uint16_t
data
戻り値
uint16_t
transfer32()¶
uint32_t SPIClass::transfer32(uint32_t data)
引数
- uint32_t
data
戻り値
uint32_t
transferBytes()¶
void SPIClass::transferBytes(uint8_t *data, uint8_t *out, uint32_t size)
引数
- uint8_t*
data
uint8_t * data buffer. can be NULL for Read Only operation - uint8_t*
out
uint8_t * output buffer. can be NULL for Write Only operation - uint32_t
size
uint32_t
transferBits()¶
void SPIClass::transferBits(uint32_t data, uint32_t *out, uint8_t bits)
引数
- uint32_t
data
- uint32_t*
out
- uint8_t
bits
write()¶
void SPIClass::write(uint8_t data)
引数
- uint8_t
data
write16()¶
void SPIClass::write16(uint16_t data)
引数
- uint16_t
data
write32()¶
void SPIClass::write32(uint32_t data)
引数
- uint32_t
data
writeBytes()¶
void SPIClass::writeBytes(const uint8_t *data, uint32_t size)
引数
- const*
data
uint8_t * - uint32_t
size
uint32_t
writePixels()¶
void SPIClass::writePixels(const void *data, uint32_t size)
引数
- constvoid *
data
void * - uint32_t
size
uint32_t
writePattern()¶
void SPIClass::writePattern(uint8_t *data, uint8_t size, uint32_t repeat)
引数
- uint8_t*
data
uint8_t * - uint8_t
size
uint8_t max for size is 64Byte - uint32_t
repeat
uint32_t
bus()¶
spi_t* SPIClass::bus()
戻り値
spi_t*