| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

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

## Macros

#define | TOGGLE_DL1 '1'
#define | TOGGLE_DL2 '2'
#define | TOGGLE_DL3 '3'
#define | TOGGLE_ALL_LED '4'
#define | SYST_CLOCK 16000000 /*< System clock frequency */

## Functions

void | processCommand (void)
| Process command code. More...
void | helpMessage (void)
| Help message code. More...
void | SPI_Master_Configuration (void)
| SPI Master initialization. More...
void | DMAUart_Sending (uint32_t buffer, uint32_t size)
int | main (void)
| Main program code. More...

## Variables

volatile FlagStatus | spi_eot
volatile uint8_t | spi_buffer_tx [SPI_BUFF_SIZE]
volatile uint8_t | spi_buffer_rx [SPI_BUFF_SIZE]
volatile uint8_t | buffer_spi_used

## Detailed Description

## Macro Definition Documentation

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

Definition at line 229 of file SPI_Master_Dma_main.c.

#define TOGGLE_ALL_LED '4'

Definition at line 227 of file SPI_Master_Dma_main.c.

#define TOGGLE_DL1 '1'

Definition at line 224 of file SPI_Master_Dma_main.c.

#define TOGGLE_DL2 '2'

Definition at line 225 of file SPI_Master_Dma_main.c.

#define TOGGLE_DL3 '3'

Definition at line 226 of file SPI_Master_Dma_main.c.

## Function Documentation

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

Definition at line 446 of file SPI_Master_Dma_main.c.

void helpMessage | ( | void |  | ) |

Help message code.

Parameters

  None |

Return values

  None |

Definition at line 280 of file SPI_Master_Dma_main.c.

int main | ( | void |  | ) |

Main program code.

Parameters

  None |

Return values

  None |

Definition at line 253 of file SPI_Master_Dma_main.c.

void processCommand | ( | void |  | ) |

Process command code.

Parameters

  None |

Return values

  None |

Definition at line 294 of file SPI_Master_Dma_main.c.

void SPI_Master_Configuration | ( | void |  | ) |

SPI Master initialization.

Parameters

  None |

Return values

  None |

Definition at line 351 of file SPI_Master_Dma_main.c.

## Variable Documentation

volatile uint8_t buffer_spi_used

volatile uint8_t spi_buffer_rx[SPI_BUFF_SIZE]

volatile uint8_t spi_buffer_tx[SPI_BUFF_SIZE]

volatile FlagStatus spi_eot