Serial Peripheral Interface framework

yasimavr: Serial Peripheral Interface framework
yasimavr
Loading...
Searching...
No Matches
Serial Peripheral Interface framework

Namespaces

namespace  SPI
 Generic Serial Peripheral Interface definitions.
 

Classes

struct  ArchAVR_SPIConfig
 Configuration structure for ArchAVR_SPI. More...
 
class  ArchAVR_SPI
 Implementation of a SPI interface for AVR series Features: More...
 
struct  ArchXT_SPIConfig
 Configuration structure for ArchXT_SPI. More...
 
class  ArchXT_SPI
 Implementation of a Serial Peripheral Interface controller for the XT core series. More...
 

Controller requests definition for SPI

#define AVR_CTLREQ_SPI_TRANSFER   (AVR_CTLREQ_BASE + 1)
 

Detailed Description

Macro Definition Documentation

◆ AVR_CTLREQ_SPI_TRANSFER

#define AVR_CTLREQ_SPI_TRANSFER   (AVR_CTLREQ_BASE + 1)

Request to transfer a byte. A byte is directly dropped into the RX buffer and a byte popped from the TX buffer of the SPI interface with bypassing the actual line bit shifting. This is meant for debugging purposes.

  • In argument, data is a 8-bits frame to be pushed to the RX buffer.
  • data is returned set to a 8-bits frame popped from the TX buffer.