ver:init
x-nucleo-idb0xa1/bluenrg-hci/bluenrg_updater_aci.h@0:4946262d6030, 2017-06-18 (annotated)
- Committer:
- iv123
- Date:
- Sun Jun 18 16:11:03 2017 +0000
- Revision:
- 0:4946262d6030
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
iv123 | 0:4946262d6030 | 1 | /******************** (C) COPYRIGHT 2014 STMicroelectronics ******************** |
iv123 | 0:4946262d6030 | 2 | * File Name : bluenrg_updater_aci.h |
iv123 | 0:4946262d6030 | 3 | * Author : AMS - HEA&RF BU |
iv123 | 0:4946262d6030 | 4 | * Version : V1.0.0 |
iv123 | 0:4946262d6030 | 5 | * Date : 26-Jun-2014 |
iv123 | 0:4946262d6030 | 6 | * Description : Header file with updater commands for BlueNRG FW6.3. |
iv123 | 0:4946262d6030 | 7 | ******************************************************************************** |
iv123 | 0:4946262d6030 | 8 | * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
iv123 | 0:4946262d6030 | 9 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
iv123 | 0:4946262d6030 | 10 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
iv123 | 0:4946262d6030 | 11 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
iv123 | 0:4946262d6030 | 12 | * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
iv123 | 0:4946262d6030 | 13 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
iv123 | 0:4946262d6030 | 14 | *******************************************************************************/ |
iv123 | 0:4946262d6030 | 15 | |
iv123 | 0:4946262d6030 | 16 | #ifndef __BLUENRG_UPDATER_ACI_H__ |
iv123 | 0:4946262d6030 | 17 | #define __BLUENRG_UPDATER_ACI_H__ |
iv123 | 0:4946262d6030 | 18 | |
iv123 | 0:4946262d6030 | 19 | #include <ble_compiler.h> |
iv123 | 0:4946262d6030 | 20 | |
iv123 | 0:4946262d6030 | 21 | /** |
iv123 | 0:4946262d6030 | 22 | * @defgroup Updater Updater |
iv123 | 0:4946262d6030 | 23 | * @brief Updater. |
iv123 | 0:4946262d6030 | 24 | * @{ |
iv123 | 0:4946262d6030 | 25 | */ |
iv123 | 0:4946262d6030 | 26 | |
iv123 | 0:4946262d6030 | 27 | /** |
iv123 | 0:4946262d6030 | 28 | * @defgroup Updater_Functions Updater functions |
iv123 | 0:4946262d6030 | 29 | * @brief API for BlueNRG Updater. |
iv123 | 0:4946262d6030 | 30 | * @{ |
iv123 | 0:4946262d6030 | 31 | */ |
iv123 | 0:4946262d6030 | 32 | |
iv123 | 0:4946262d6030 | 33 | tBleStatus aci_updater_start(void); |
iv123 | 0:4946262d6030 | 34 | |
iv123 | 0:4946262d6030 | 35 | tBleStatus aci_updater_reboot(void); |
iv123 | 0:4946262d6030 | 36 | |
iv123 | 0:4946262d6030 | 37 | tBleStatus aci_get_updater_version(uint8_t *version); |
iv123 | 0:4946262d6030 | 38 | |
iv123 | 0:4946262d6030 | 39 | tBleStatus aci_get_updater_buffer_size(uint8_t *buffer_size); |
iv123 | 0:4946262d6030 | 40 | |
iv123 | 0:4946262d6030 | 41 | tBleStatus aci_erase_blue_flag(void); |
iv123 | 0:4946262d6030 | 42 | |
iv123 | 0:4946262d6030 | 43 | tBleStatus aci_reset_blue_flag(void); |
iv123 | 0:4946262d6030 | 44 | |
iv123 | 0:4946262d6030 | 45 | tBleStatus aci_updater_erase_sector(uint32_t address); |
iv123 | 0:4946262d6030 | 46 | |
iv123 | 0:4946262d6030 | 47 | tBleStatus aci_updater_program_data_block(uint32_t address, uint16_t len, const uint8_t *data); |
iv123 | 0:4946262d6030 | 48 | |
iv123 | 0:4946262d6030 | 49 | tBleStatus aci_updater_read_data_block(uint32_t address, uint16_t data_len, uint8_t *data); |
iv123 | 0:4946262d6030 | 50 | |
iv123 | 0:4946262d6030 | 51 | tBleStatus aci_updater_calc_crc(uint32_t address, uint8_t num_sectors, uint32_t *crc); |
iv123 | 0:4946262d6030 | 52 | |
iv123 | 0:4946262d6030 | 53 | tBleStatus aci_updater_hw_version(uint8_t *version); |
iv123 | 0:4946262d6030 | 54 | |
iv123 | 0:4946262d6030 | 55 | /** |
iv123 | 0:4946262d6030 | 56 | * @} |
iv123 | 0:4946262d6030 | 57 | */ |
iv123 | 0:4946262d6030 | 58 | |
iv123 | 0:4946262d6030 | 59 | /** |
iv123 | 0:4946262d6030 | 60 | * @defgroup Updater_Events Updater events |
iv123 | 0:4946262d6030 | 61 | * @{ |
iv123 | 0:4946262d6030 | 62 | */ |
iv123 | 0:4946262d6030 | 63 | /** HCI vendor specific event, raised at BlueNRG power-up or reboot. */ |
iv123 | 0:4946262d6030 | 64 | #define EVT_BLUE_INITIALIZED (0x0001) |
iv123 | 0:4946262d6030 | 65 | typedef __packed struct _evt_blue_initialized{ |
iv123 | 0:4946262d6030 | 66 | uint8_t reason_code; |
iv123 | 0:4946262d6030 | 67 | } PACKED evt_blue_initialized; |
iv123 | 0:4946262d6030 | 68 | /** |
iv123 | 0:4946262d6030 | 69 | * @} |
iv123 | 0:4946262d6030 | 70 | */ |
iv123 | 0:4946262d6030 | 71 | |
iv123 | 0:4946262d6030 | 72 | /** |
iv123 | 0:4946262d6030 | 73 | * @} |
iv123 | 0:4946262d6030 | 74 | */ |
iv123 | 0:4946262d6030 | 75 | |
iv123 | 0:4946262d6030 | 76 | |
iv123 | 0:4946262d6030 | 77 | |
iv123 | 0:4946262d6030 | 78 | #endif /* __BLUENRG_UPDATER_ACI_H__ */ |