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_Exported_Functions

STM32_BLUENRG_BLE_Exported_Functions
[STM32_BLUENRG_BLE]

Functions

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 Clear_SPI_EXTI_Flag (void)
 Clear EXTI (External Interrupt) line for SPI IRQ.
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)

Function Documentation

void BlueNRG_HW_Bootloader ( void   )

Activate internal bootloader using pin.

Parameters:
None
Return values:
None

Definition at line 123 of file stm32_bluenrg_ble.cpp.

int32_t BlueNRG_SPI_Read_All ( uint8_t *  buffer,
uint8_t  buff_size 
)

Reads from BlueNRG SPI buffer and store data into local buffer.

Parameters:
buffer: Buffer where data from SPI are stored
buff_size,:Buffer size
Return values:
int32_t: Number of read bytes

Definition at line 141 of file stm32_bluenrg_ble.cpp.

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.

Parameters:
data1: First data buffer to be written
data2: Second data buffer to be written
Nb_bytes1,:Size of first data buffer to be written
Nb_bytes2,:Size of second data buffer to be written
Return values:
Numberof read bytes

Definition at line 157 of file stm32_bluenrg_ble.cpp.

void Clear_SPI_EXTI_Flag ( void   )

Clear EXTI (External Interrupt) line for SPI IRQ.

Parameters:
None
Return values:
None

Definition at line 206 of file stm32_bluenrg_ble.cpp.

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)

Parameters:
None
Return values:
None

Definition at line 76 of file stm32_bluenrg_ble.cpp.