Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of X_NUCLEO_IDB0XA1 by
STM32_BLUENRG_BLE_Exported_Functions
[STM32_BLUENRG_BLE]
Functions | |
void | BlueNRG_RST (void) |
Resets the BlueNRG. | |
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.
void BlueNRG_RST | ( | void | ) |
Resets the BlueNRG.
- Parameters:
-
None
- Return values:
-
None
Definition at line 59 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 135 of file stm32_bluenrg_ble.cpp.
int32_t 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.
- 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:
-
Number of read bytes
- Parameters:
-
hspi,: SPI handle header_data,: First data buffer to be written payload_data,: Second data buffer to be written header_size,: Size of first data buffer to be written payload_size,: Size of second data buffer to be written
- Return values:
-
Number of read bytes
Definition at line 151 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 208 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.
Generated on Tue Jul 12 2022 19:31:16 by
