SAM3S8/SD8 Software Package: SpidCmd Struct Reference

SAM3S8/SD8 Software Package 1.2
Data Fields

# SpidCmd Struct Reference

Spi Transfer Request prepared by the application upper layer. More...

`#include <libraries/libchip_sam3s/include/spi_pdc.h>`

## Data Fields

uint8_t * | pCmd
uint8_t | cmdSize
uint8_t * | pData
unsigned short | dataSize
uint8_t | spiCs
SpidCallback | callback
void * | pArgument

## Detailed Description

Spi Transfer Request prepared by the application upper layer.

This structure is sent to the SPI_SendCommand function to start the transfer. At the end of the transfer, the callback is invoked by the interrupt handler.

Definition at line 84 of file spi_pdc.h.

## Field Documentation

SpidCallback SpidCmd::callback

Callback function invoked at the end of transfer.

Definition at line 97 of file spi_pdc.h.

uint8_t SpidCmd::cmdSize

Command size in bytes.

Definition at line 89 of file spi_pdc.h.

unsigned short SpidCmd::dataSize

Data size in bytes.

Definition at line 93 of file spi_pdc.h.

void* SpidCmd::pArgument

Callback arguments.

Definition at line 99 of file spi_pdc.h.

uint8_t* SpidCmd::pCmd

Pointer to the command data.

Definition at line 87 of file spi_pdc.h.

uint8_t* SpidCmd::pData

Pointer to the data to be sent.

Definition at line 91 of file spi_pdc.h.

uint8_t SpidCmd::spiCs

SPI chip select.

Definition at line 95 of file spi_pdc.h.

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

- libraries/libchip_sam3s/include/spi_pdc.h

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines