UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
Data Structures
spi.c File Reference

SPI Driver - uos3-proto board. More...

Go to the source code of this file.

Data Structures

struct  SPI_port
 
struct  SPI_t
 
typedef struct SPI_port SPI_port
 
typedef struct SPI_t SPI_t
 
static SPI_port SPI_ports [1]
 
static SPI_t SPI_spis [3]
 
static void SPI_init (SPI_t *spi)
 
uint8_t SPI_cmd (uint8_t spi_num, uint8_t cmd)
 
uint8_t SPI_read8 (uint8_t spi_num, uint8_t addr, uint8_t *data)
 
uint8_t SPI_burstread8 (uint8_t spi_num, uint8_t addr, uint8_t *data, uint32_t len)
 
uint8_t SPI_write8 (uint8_t spi_num, uint8_t addr, uint8_t *data)
 
uint8_t SPI_burstwrite8 (uint8_t spi_num, uint8_t addr, uint8_t *data, uint32_t len)
 
uint8_t SPI_read16 (uint8_t spi_num, uint16_t addr, uint8_t *data)
 
uint8_t SPI_burstread16 (uint8_t spi_num, uint16_t addr, uint8_t *data, uint32_t len)
 
uint8_t SPI_write16 (uint8_t spi_num, uint16_t addr, uint8_t *data)
 
uint8_t SPI_burstwrite16 (uint8_t spi_num, uint16_t addr, uint8_t *data, uint32_t len)
 
uint8_t SPI_read32 (uint8_t spi_num, uint32_t addr, uint8_t *data)
 
uint8_t SPI_burstread32 (uint8_t spi_num, uint32_t addr, uint8_t *data, uint32_t len)
 
uint8_t SPI_write32 (uint8_t spi_num, uint32_t addr, uint8_t *data)
 
uint8_t SPI_burstwrite32 (uint8_t spi_num, uint32_t addr, uint8_t *data, uint32_t len)
 

Detailed Description

SPI Driver - uos3-proto board.

Definition in file spi.c.

Variable Documentation

SPI_port SPI_ports[1]
static
Initial value:
=
{
{
SYSCTL_PERIPH_GPIOF,
SYSCTL_PERIPH_SSI1,
GPIO_PORTF_BASE,
SSI1_BASE,
GPIO_PF2_SSI1CLK,
GPIO_PF0_SSI1RX,
GPIO_PF1_SSI1TX,
GPIO_PIN_2,
GPIO_PIN_0,
GPIO_PIN_1,
5000000,
false
}
}

Definition at line 43 of file spi.c.

SPI_t SPI_spis[3]
static
Initial value:
=
{
{
&SPI_ports[0],
GPIO_PA3,
true
},
{
&SPI_ports[0],
GPIO_PF3,
true
},
{
&SPI_ports[0],
GPIO_PC5,
false
}
}

Definition at line 69 of file spi.c.