Microchip® Advanced Software Framework

spi.h File Reference
#include "compiler.h"
#include "status_codes.h"
#include "ioport.h"

Functions

static void spi_disable (SPI_t *spi)
 Disables the SPI. More...
 
static void spi_enable (SPI_t *spi)
 Enables the SPI. More...
 
static void spi_enable_master_mode (SPI_t *spi)
 Activate SPI master mode of a SPI peripheral. More...
 
static uint8_t spi_get (SPI_t *spi)
 Get one data byte to a SPI peripheral. More...
 
static bool spi_is_enabled (SPI_t *spi)
 Tests if the SPI is enabled. More...
 
static bool spi_is_tx_ok (SPI_t *spi)
 Tests if the SPI contains a received character. More...
 
static void spi_put (SPI_t *spi, uint8_t data)
 Put one data byte to a SPI peripheral. More...
 
int8_t spi_xmega_set_baud_div (SPI_t *spi, uint32_t baudrate, uint32_t clkper_hz)
 Calculates the SPI baudrate divider. More...