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
bluenrg_updater_aci.h
00001 /******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** 00002 * File Name : bluenrg_updater_aci.h 00003 * Author : AMS - HEA&RF BU 00004 * Version : V1.0.0 00005 * Date : 26-Jun-2014 00006 * Description : Header file with updater commands for BlueNRG FW6.3. 00007 ******************************************************************************** 00008 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS 00009 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. 00010 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE 00012 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING 00013 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. 00014 *******************************************************************************/ 00015 00016 #ifndef __BLUENRG_UPDATER_ACI_H__ 00017 #define __BLUENRG_UPDATER_ACI_H__ 00018 00019 #include <ble_compiler.h> 00020 00021 /** 00022 * @defgroup Updater Updater 00023 * @brief Updater. 00024 * @{ 00025 */ 00026 00027 /** 00028 * @defgroup Updater_Functions Updater functions 00029 * @brief API for BlueNRG Updater. 00030 * @{ 00031 */ 00032 00033 tBleStatus aci_updater_start(void); 00034 00035 tBleStatus aci_updater_reboot(void); 00036 00037 tBleStatus aci_get_updater_version(uint8_t *version); 00038 00039 tBleStatus aci_get_updater_buffer_size(uint8_t *buffer_size); 00040 00041 tBleStatus aci_erase_blue_flag(void); 00042 00043 tBleStatus aci_reset_blue_flag(void); 00044 00045 tBleStatus aci_updater_erase_sector(uint32_t address); 00046 00047 tBleStatus aci_updater_program_data_block(uint32_t address, uint16_t len, const uint8_t *data); 00048 00049 tBleStatus aci_updater_read_data_block(uint32_t address, uint16_t data_len, uint8_t *data); 00050 00051 tBleStatus aci_updater_calc_crc(uint32_t address, uint8_t num_sectors, uint32_t *crc); 00052 00053 tBleStatus aci_updater_hw_version(uint8_t *version); 00054 00055 /** 00056 * @} 00057 */ 00058 00059 /** 00060 * @defgroup Updater_Events Updater events 00061 * @{ 00062 */ 00063 /** HCI vendor specific event, raised at BlueNRG power-up or reboot. */ 00064 #define EVT_BLUE_INITIALIZED (0x0001) 00065 typedef __packed struct _evt_blue_initialized{ 00066 uint8_t reason_code; 00067 } PACKED evt_blue_initialized; 00068 /** 00069 * @} 00070 */ 00071 00072 /** 00073 * @} 00074 */ 00075 00076 00077 00078 #endif /* __BLUENRG_UPDATER_ACI_H__ */
Generated on Tue Jul 12 2022 18:15:59 by 1.7.2