| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

Macros | Functions | Variables
SPI Slave DMA
BlueNRG1 Standard Peripheral Examples » SPI Examples

## Macros

#define | TOGGLE_DL1 '1'
#define | TOGGLE_DL2 '2'
#define | TOGGLE_DL3 '3'
#define | SYST_CLOCK 16000000 /*< System clock frequency */
#define | SPI_CS_SLAVE_DEMO_PIN GPIO_Pin_11
#define | SPI_CS_SLAVE_DEMO_MODE Serial0_Mode

## Functions

void | processCommand (void)
| Process command code. More...
void | SPI_Slave_Configuration (void)
| SPI Slave initialization. More...
void | DMAUart_Sending (uint32_t buffer, uint32_t size)
int | main (void)
| Main program code. More...

## Variables

volatile uint8_t | spi_buffer_tx [SPI_BUFF_SIZE]
volatile uint8_t | spi_buffer_rx [SPI_BUFF_SIZE]
uint8_t | buffer_spi_tail
volatile uint8_t | buffer_spi_used

## Detailed Description

## Macro Definition Documentation

#define SPI_CS_SLAVE_DEMO_MODE Serial0_Mode

Definition at line 217 of file SPI_Slave_Dma_main.c.

#define SPI_CS_SLAVE_DEMO_PIN GPIO_Pin_11

Definition at line 216 of file SPI_Slave_Dma_main.c.

#define SYST_CLOCK 16000000 /*< System clock frequency */

Definition at line 213 of file SPI_Slave_Dma_main.c.

#define TOGGLE_DL1 '1'

Definition at line 209 of file SPI_Slave_Dma_main.c.

#define TOGGLE_DL2 '2'

Definition at line 210 of file SPI_Slave_Dma_main.c.

#define TOGGLE_DL3 '3'

Definition at line 211 of file SPI_Slave_Dma_main.c.

## Function Documentation

void DMAUart_Sending | ( | uint32_t | buffer,
|  | uint32_t | size
| ) |  |

Definition at line 386 of file SPI_Slave_Dma_main.c.

int main | ( | void |  | ) |

Main program code.

Parameters

  None |

Return values

  None |

Definition at line 239 of file SPI_Slave_Dma_main.c.

void processCommand | ( | void |  | ) |

Process command code.

Parameters

  None |

Return values

  None |

Definition at line 268 of file SPI_Slave_Dma_main.c.

void SPI_Slave_Configuration | ( | void |  | ) |

SPI Slave initialization.

Parameters

  None |

Return values

  None |

Definition at line 309 of file SPI_Slave_Dma_main.c.

## Variable Documentation

uint8_t buffer_spi_tail

volatile uint8_t buffer_spi_used

volatile uint8_t spi_buffer_rx[SPI_BUFF_SIZE]

volatile uint8_t spi_buffer_tx[SPI_BUFF_SIZE]