| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions | Variables
SDK_EVAL_SPI.c File Reference

This file provides all the low level API to manage SPI interface for eval board. More...

`#include "SDK_EVAL_SPI.h"`

Go to the source code of this file.

## Macros

#define | SEND_START 0
| SPI IRQ mode defines. More...
#define | SEND_READ_REG 1
#define | SEND_WRITE_REG 2
#define | SEND_WRITE_DATA 3

## Functions

ErrorStatus | SdkEvalSpiInit (uint32_t baudrate)
| Configures SPI interface. More...
ErrorStatus | SdkEvalSpiRead (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToRead)
| SPI function to read registers from a slave device. More...
ErrorStatus | SdkEvalSpiWrite (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| SPI function to write registers of a slave device. More...
ErrorStatus | SdkEvalSpiDmaInit (uint32_t baudrate)
| Configures SPI interface and the SPI_TX/SPI_RX DMA channels. More...
ErrorStatus | SdkEvalSpiDmaRead (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToRead)
| SPI DMA function to read registers from a slave device. More...
ErrorStatus | SdkEvalSpiDmaWrite (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| SPI DMA function to write registers of a slave device. More...
void | DmaSpiHandlerCallback (void)
| SPI DMA ISR callback function. More...
ErrorStatus | SdkEvalSpiIrqInit (uint32_t baudrate)
| Configures SPI interface and the SPI_TX/SPI_RX IRQ sources. More...
ErrorStatus | SdkEvalSpiIrqRead (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToRead)
| SPI IRQ function to read registers from a slave device. More...
ErrorStatus | SdkEvalSpiIrqWrite (uint8_t *pBuffer, uint8_t RegisterAddr, uint8_t NumByteToWrite)
| SPI IRQ function to write registers of a slave device. More...
void | IrqSpiHandlerCallback (void)
| SPI IRQ ISR callback function. More...

## Variables

volatile uint8_t | spi_buffer_tx [SPI_BUFF_SIZE]
| SPI buffers used for DMA application. More...
volatile uint8_t | spi_buffer_rx [SPI_BUFF_SIZE]
volatile FlagStatus | spi_eot = SET
| SPI flag set at end of transaction. More...

## Detailed Description

This file provides all the low level API to manage SPI interface for eval board.

Author
  AMS VMA RF application team

Version
  V1.0.0

Date
  September 29, 2015

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

THIS SOURCE CODE IS PROTECTED BY A LICENSE. FOR MORE INFORMATION PLEASE CAREFULLY READ THE LICENSE AGREEMENT FILE LOCATED IN THE ROOT DIRECTORY OF THIS FIRMWARE PACKAGE.

##
© COPYRIGHT 2015 STMicroelectronics

Definition in file SDK_EVAL_SPI.c.