spi_t Union Reference

Controls and provides information for the spi. More...

#include <PHiLIP_typedef.h>

Data Fields

struct {
   spi_mode_t   mode
   spi_status_t   status
   basic_gpio_t   dut_mosi
   basic_gpio_t   dut_miso
   basic_gpio_t   dut_sck
   basic_gpio_t   dut_nss
   uint16_t   state
   uint16_t   reg_index
   uint16_t   start_reg_index
   uint8_t   r_count
   uint8_t   w_count
   uint8_t   transfer_count
   uint32_t   frame_ticks
   uint32_t   byte_ticks
   uint32_t   prev_ticks
   uint8_t   res [5]
uint8_t data8 [32]

Detailed Description

Controls and provides information for the spi.

Field Documentation

uint32_t spi_t::byte_ticks

Ticks per byte

uint8_t spi_t::data8[32]

array for padding

uint32_t spi_t::frame_ticks

Ticks per frame

spi_mode_t spi_t::mode

Specific spi modes

uint32_t spi_t::prev_ticks

Holder for previous byte ticks

uint8_t spi_t::r_count

Last read frame byte count

uint16_t spi_t::reg_index

current index of i2c pointer

uint8_t spi_t::res[5]

Reserved bytes

uint16_t spi_t::start_reg_index

start index of i2c pointer

uint16_t spi_t::state

Current state of i2c frame - 0:initialized - 1:reading data - 2-write address received - 3-1st reg byte received - 4-writing data - 5-NACK - 6-stopped

spi_status_t spi_t::status

Spi status register

uint8_t spi_t::transfer_count

The amount of bytes in the last transfer

uint8_t spi_t::w_count

Last write frame byte count

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