BLE_API wrapper library for STMicroelectronics' BlueNRG Bluetooth Low Energy expansion board shield (Component)

Dependents:   Nucleo_Zumo_BLE_IDB04A1 contest_IOT5 contest_IOT6 contest_IOT_10 ... more

Fork of X_NUCLEO_IDB0XA1 by ST Expansion SW Team

Embed: (wiki syntax)

« Back to documentation index

stm32_bluenrg_ble.cpp File Reference

stm32_bluenrg_ble.cpp File Reference

Go to the source code of this file.

Functions

void print_csv_time (void)
 This function is a utility to print the log time in the format HH:MM:SS:MSS (DK GUI time format)
void Hal_Write_Serial (const void *data1, const void *data2, int32_t n_bytes1, int32_t n_bytes2)
 Writes data to a serial interface.
void BlueNRG_HW_Bootloader (void)
 Activate internal bootloader using pin.
int32_t BlueNRG_SPI_Read_All (uint8_t *buffer, uint8_t buff_size)
 Reads from BlueNRG SPI buffer and store data into local buffer.
int32_t BlueNRG_SPI_Write (uint8_t *data1, uint8_t *data2, uint8_t Nb_bytes1, uint8_t Nb_bytes2)
 Writes data from local buffer to SPI.
void Enable_SPI_IRQ (void)
 Enable SPI IRQ.
void Disable_SPI_IRQ (void)
 Disable SPI IRQ.
void Clear_SPI_IRQ (void)
 Clear Pending SPI IRQ.
void Clear_SPI_EXTI_Flag (void)
 Clear EXTI (External Interrupt) line for SPI IRQ.

Detailed Description

Author:
CL
Version:
V1.0.0
Date:
15-June-2015
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.cpp.


Function Documentation

void Clear_SPI_IRQ ( void   )

Clear Pending SPI IRQ.

Parameters:
None
Return values:
None

Definition at line 197 of file stm32_bluenrg_ble.cpp.

void Disable_SPI_IRQ ( void   )

Disable SPI IRQ.

Disable interrupts from BLE controller.

Parameters:
None
Return values:
None

Definition at line 187 of file stm32_bluenrg_ble.cpp.

void Enable_SPI_IRQ ( void   )

Enable SPI IRQ.

Enable interrupts from HCI controller.

Parameters:
None
Return values:
None

Definition at line 170 of file stm32_bluenrg_ble.cpp.

void Hal_Write_Serial ( const void *  data1,
const void *  data2,
int32_t  n_bytes1,
int32_t  n_bytes2 
)

Writes data to a serial interface.

Parameters:
data1: 1st buffer
data2: 2nd buffer
n_bytes1,:number of bytes in 1st buffer
n_bytes2,:number of bytes in 2nd buffer
Return values:
None

Definition at line 91 of file stm32_bluenrg_ble.cpp.