Pixels
Public Member Functions | Protected Member Functions | List of all members
SPIhw Class Reference

Public Member Functions

void setSPIBitOrder (uint8_t bitOrder)
 
void setSPIDataMode (uint8_t mode)
 
void setSPIClockDivider (uint8_t rate)
 
void setSpiPins (uint8_t scl, uint8_t sda, uint8_t cs, uint8_t rst, uint8_t wr=255)
 
void setPpiPins (uint8_t rs, uint8_t wr, uint8_t cs, uint8_t rst, uint8_t rd)
 
void registerSelect ()
 
void initInterface ()
 

Protected Member Functions

void reset ()
 
void writeCmd (uint8_t b)
 
 __attribute__ ((noinline)) void writeData(uint8_t data)
 
void writeData (uint8_t hi, uint8_t lo)
 
void writeDataTwice (uint8_t b)
 
void writeCmdData (uint8_t cmd, uint16_t data)
 

Detailed Description

Definition at line 50 of file Pixels_SPIhw.h.

Member Function Documentation

void SPIhw::setPpiPins ( uint8_t  rs,
uint8_t  wr,
uint8_t  cs,
uint8_t  rst,
uint8_t  rd 
)
inline

Overrides PPI pins

Parameters
cschip select

Definition at line 126 of file Pixels_SPIhw.h.

void SPIhw::setSpiPins ( uint8_t  scl,
uint8_t  sda,
uint8_t  cs,
uint8_t  rst,
uint8_t  wr = 255 
)
inline

Overrides SPI pins

Parameters
scl
sda
cschip select
rstreset
wrwrite pin; if not omitted (and not equals to 255) - switches to eight bit mode transfer

Definition at line 113 of file Pixels_SPIhw.h.


The documentation for this class was generated from the following file: