nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
spi_slave_evt_t Struct Reference

Struct containing event context from the SPI slave driver. More...

#include <spi_slave.h>

Data Fields

spi_slave_evt_type_t evt_type
 
uint32_t rx_amount
 
uint32_t tx_amount
 

Detailed Description

Struct containing event context from the SPI slave driver.

Field Documentation

spi_slave_evt_type_t spi_slave_evt_t::evt_type

Type of event.

uint32_t spi_slave_evt_t::rx_amount

Number of bytes received in last transaction (parameter is only valid upon SPI_SLAVE_XFER_DONE event).

uint32_t spi_slave_evt_t::tx_amount

Number of bytes transmitted in last transaction (parameter is only valid upon SPI_SLAVE_XFER_DONE event).