BLE shield
Fork of X_NUCLEO_IDB0XA1 by
stm32_bluenrg_ble_dma_lp.c File Reference
Go to the source code of this file.
Functions | |
static void | SPI_Transmit_Manager (SPI_TRANSMIT_REQUEST_t TransmitRequest) |
Manage the SPI transmit. | |
static void | SPI_Receive_Manager (SPI_RECEIVE_REQUEST_t ReceiveRequest) |
Manage the SPI receive. | |
static void | set_irq_as_output (void) |
Set in Output mode the IRQ. | |
static void | set_irq_as_input (void) |
Set the IRQ in input mode. | |
static void | Disable_SPI_Receiving_Path (void) |
Disable SPI IRQ. | |
static void | Enable_SPI_Receiving_Path (void) |
Enable SPI IRQ. | |
static void | Enable_SPI_CS (void) |
Enable SPI CS. | |
static void | Disable_SPI_CS (void) |
Disable SPI CS. | |
static void | DisableEnable_SPI_CS (void) |
Disable and Enable SPI CS. | |
static void | TransmitClosure (void) |
Close the transmit mechanism after packet has been sent Wait for the event to come back. | |
static void | ReceiveClosure (void) |
Close the receiver path. | |
static void | ReceiveHeader (SPI_RECEIVE_EVENT_t ReceiveEvent, uint8_t *DataHeader) |
Receive header. | |
static void | WakeupBlueNRG (void) |
Wakeup BlueNRG. | |
static void | TimerStartupCallback (void) |
Timer callback to apply timeout SPI FIX. | |
static void | TimerTransmitCallback (void) |
Timer callback to apply timeout SPI FIX. | |
static void | pf_nRFResetTimerCallBack (void) |
This function notify when then BlueNRG nRESET may be released. | |
static void | TimerTxRxCallback (void) |
Timer callback to handle RxTx Timers. | |
static void | ProcessEndOfReceive (void) |
Delay Notification to the App to prevent dummy event read. | |
void | BNRG_SPI_Close (void) |
Closes the SPI when BLE is disabled by the application Releases allocated resources. | |
void | BNRG_SPI_Init (void) |
Initializes the SPI communication with the BlueNRG Shield. | |
void | BNRG_MSP_SPI_Init (SPI_HandleTypeDef *hspi) |
Initializes the SPI communication with the BlueNRG Shield. | |
void | BlueNRG_RST (void) |
Resets the BlueNRG. | |
void | BlueNRG_SPI_Write (uint8_t *header_data, uint8_t *payload_data, uint8_t header_size, uint8_t payload_size) |
Writes data from local buffer to SPI. | |
void | BlueNRG_DMA_RxCallback (void) |
Tx and Rx Transfer completed callbacks. | |
void | BlueNRG_DMA_TxCallback (void) |
Tx and Rx Transfer completed callbacks. | |
void | BlueNRG_SPI_Request_Events (uint8_t *buffer, uint8_t buff_size) |
BlueNRG SPI request event. | |
void | BlueNRG_SPI_IRQ_Callback (void) |
BlueNRG SPI IRQ Callback. |
Detailed Description
- Version:
- V1.0.0
- Date:
- 04-July-2014
- Attention:
© COPYRIGHT(c) 2014 STMicroelectronics
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file stm32_bluenrg_ble_dma_lp.c.
Generated on Tue Jul 12 2022 19:27:29 by 1.7.2