| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

Functions
SDK EVAL SPI Public Functions
SDK EVAL BlueNRG1 » SDK EVAL SPI

## 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...

## Detailed Description

## Function Documentation

void DmaSpiHandlerCallback | ( | void |  | ) |

SPI DMA ISR callback function.

Parameters

  None |

Return values

  None |

Definition at line 420 of file SDK_EVAL_SPI.c.

void IrqSpiHandlerCallback | ( | void |  | ) |

SPI IRQ ISR callback function.

Parameters

  None |

Return values

  None |

Definition at line 576 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiDmaInit | ( | uint32_t | baudrate | ) |

Configures SPI interface and the SPI_TX/SPI_RX DMA channels.

Parameters

  baudrate | SPI clock frequency

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 261 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiDmaRead | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

SPI DMA function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Set communication mode

Definition at line 349 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiDmaWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

SPI DMA function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Set communication mode

Definition at line 389 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiInit | ( | uint32_t | baudrate | ) |

Configures SPI interface.

Parameters

  baudrate | SPI clock frequency

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 133 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiIrqInit | ( | uint32_t | baudrate | ) |

Configures SPI interface and the SPI_TX/SPI_RX IRQ sources.

Parameters

  baudrate | SPI clock frequency

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 449 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiIrqRead | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

SPI IRQ function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Set communication mode

Definition at line 514 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiIrqWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

SPI IRQ function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 547 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiRead | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToRead
| ) |  |

SPI function to read registers from a slave device.

Parameters

  pBuffer | buffer to retrieve data from a slave
  RegisterAddr | register address
  NumByteToRead | number of byte to read

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 195 of file SDK_EVAL_SPI.c.

ErrorStatus SdkEvalSpiWrite | ( | uint8_t * | pBuffer,
|  | uint8_t | RegisterAddr,
|  | uint8_t | NumByteToWrite
| ) |  |

SPI function to write registers of a slave device.

Parameters

  pBuffer | buffer contains data to write
  RegisterAddr | register address
  NumByteToRead | number of byte to write

Return values

  ErrorStatus | error status ErrorStatus This parameter can be: SUCCESS or ERROR.

Definition at line 231 of file SDK_EVAL_SPI.c.