Master SPI Mode Serial USART Peripheral Driver (XMEGA) More...
Macros | |
SPI SCK Polarity Configuration Masks | |
#define | USART_SPI_SCK_LEAD_RISING 0 |
SPI Sample Edge Configuration Masks | |
#define | USART_SPI_SAMPLE_LEADING 0 |
#define | USART_SPI_SAMPLE_TRAILING (1 << 1) |
SPI Data Ordering Configuration Masks | |
#define | USART_SPI_ORDER_MSB_FIRST 0 |
#define | USART_SPI_ORDER_LSB_FIRST (1 << 2) |
Functions | |
static void | SerialSPI_Disable (USART_t *const USART) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1) |
static void | SerialSPI_Init (USART_t *const USART, const uint8_t SPIOptions, const uint32_t BaudRate) ATTR_NON_NULL_PTR_ARG(1) |
static uint8_t | SerialSPI_ReceiveByte (USART_t *const USART) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(1) |
static void | SerialSPI_SendByte (USART_t *const USART, const uint8_t DataByte) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1) |
static uint8_t | SerialSPI_TransferByte (USART_t *const USART, const uint8_t DataByte) ATTR_ALWAYS_INLINE ATTR_NON_NULL_PTR_ARG(1) |
On-chip Master SPI mode USART driver for the XMEGA AVR microcontrollers.