my fork
Embed:
(wiki syntax)
Show/hide line numbers
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 <compiler.h> 00020 00021 /** 00022 * @defgroup Updater_Functions Updater functions 00023 * @brief API for BlueNRG Updater. 00024 * @{ 00025 */ 00026 00027 tBleStatus aci_updater_start(); 00028 00029 tBleStatus aci_updater_reboot(); 00030 00031 tBleStatus aci_get_updater_version(uint8_t *version); 00032 00033 tBleStatus aci_get_updater_buffer_size(uint8_t *buffer_size); 00034 00035 tBleStatus aci_erase_blue_flag(); 00036 00037 tBleStatus aci_reset_blue_flag(); 00038 00039 tBleStatus aci_updater_erase_sector(uint32_t address); 00040 00041 tBleStatus aci_updater_program_data_block(uint32_t address, uint16_t len, const uint8_t *data); 00042 00043 tBleStatus aci_updater_read_data_block(uint32_t address, uint16_t data_len, uint8_t *data); 00044 00045 tBleStatus aci_updater_calc_crc(uint32_t address, uint8_t num_sectors, uint32_t *crc); 00046 00047 tBleStatus aci_updater_hw_version(uint8_t *version); 00048 00049 /** 00050 * @} 00051 */ 00052 00053 /** 00054 * @defgroup Updater_Events Updater events 00055 * @{ 00056 */ 00057 /** HCI vendor specific event, raised at BlueNRG power-up or reboot. */ 00058 #define EVT_BLUE_INITIALIZED (0x0001) 00059 typedef __packed struct _evt_blue_initialized{ 00060 uint8_t reason_code; 00061 } PACKED evt_blue_initialized; 00062 /** 00063 * @} 00064 */ 00065 00066 00067 #endif /* __BLUENRG_UPDATER_ACI_H__ */ 00068
Generated on Tue Jul 12 2022 17:28:29 by
1.7.2