nRF51 SDK: spi_slave_evt_t Struct Reference

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
spi_slave_evt_t Struct Reference
Software controlled SPI Slave driver.

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).