| BlueNRG-1 Peripherals drivers Examples

- Main Page
- Modules
- Classes
- Files

Macros | Functions
SPI Master Polling
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 | SPI_CS_MS_DEMO_PIN GPIO_Pin_6

## Functions

void | processCommand (void)
| Process command code. More...
void | helpMessage (void)
| Help message code. More...
void | SPI_SendReceiveData (uint8_t *command, uint8_t len)
| SPI Master communication. More...
int | main (void)
| Main program code. More...

## Detailed Description

## Macro Definition Documentation

#define SPI_CS_MS_DEMO_PIN GPIO_Pin_6

Definition at line 229 of file SPI_Master_Polling_main.c.

#define TOGGLE_ALL_LED '4'

Definition at line 226 of file SPI_Master_Polling_main.c.

#define TOGGLE_DL1 '1'

Definition at line 223 of file SPI_Master_Polling_main.c.

#define TOGGLE_DL2 '2'

Definition at line 224 of file SPI_Master_Polling_main.c.

#define TOGGLE_DL3 '3'

Definition at line 225 of file SPI_Master_Polling_main.c.

## Function Documentation

void helpMessage | ( | void |  | ) |

Help message code.

Parameters

  None |

Return values

  None |

Definition at line 271 of file SPI_Master_Polling_main.c.

int main | ( | void |  | ) |

Main program code.

Parameters

  None |

Return values

  None |

Definition at line 247 of file SPI_Master_Polling_main.c.

void processCommand | ( | void |  | ) |

Process command code.

Parameters

  None |

Return values

  None |

Definition at line 285 of file SPI_Master_Polling_main.c.

void SPI_SendReceiveData | ( | uint8_t * | command,
|  | uint8_t | len
| ) |  |

SPI Master communication.

Parameters

  uint8_t | command: value to send
  uint8_t | pBuffer: value to get

Return values

  None |

Definition at line 402 of file SPI_Master_Polling_main.c.