SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Committer:
soumi_ghsoh
Date:
Wed Apr 01 22:06:35 2015 +0000
Revision:
100:030804500597
Parent:
66:b3680699d9a4
TAG read with multiple instances of RX complete IRQ; Imp changes: reduced RX wait time, Vin=3V/AGC ON, RX_IN2(main) , RX_IN1(aux)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rohit Grover 66:b3680699d9a4 1 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
Rohit Grover 66:b3680699d9a4 2 *
Rohit Grover 66:b3680699d9a4 3 * The information contained herein is property of Nordic Semiconductor ASA.
Rohit Grover 66:b3680699d9a4 4 * Terms and conditions of usage are described in detail in NORDIC
Rohit Grover 66:b3680699d9a4 5 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
Rohit Grover 66:b3680699d9a4 6 *
Rohit Grover 66:b3680699d9a4 7 * Licensees are granted free, non-transferable use of the information. NO
Rohit Grover 66:b3680699d9a4 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
Rohit Grover 66:b3680699d9a4 9 * the file.
Rohit Grover 66:b3680699d9a4 10 *
Rohit Grover 66:b3680699d9a4 11 */
Rohit Grover 66:b3680699d9a4 12
Rohit Grover 66:b3680699d9a4 13 /**@file
Rohit Grover 66:b3680699d9a4 14 *
Rohit Grover 66:b3680699d9a4 15 * @defgroup nrf_bootloader_types Types and definitions.
Rohit Grover 66:b3680699d9a4 16 * @{
Rohit Grover 66:b3680699d9a4 17 *
Rohit Grover 66:b3680699d9a4 18 * @ingroup nrf_bootloader
Rohit Grover 66:b3680699d9a4 19 *
Rohit Grover 66:b3680699d9a4 20 * @brief Bootloader module type and definitions.
Rohit Grover 66:b3680699d9a4 21 */
Rohit Grover 66:b3680699d9a4 22
Rohit Grover 66:b3680699d9a4 23 #ifndef BOOTLOADER_TYPES_H__
Rohit Grover 66:b3680699d9a4 24 #define BOOTLOADER_TYPES_H__
Rohit Grover 66:b3680699d9a4 25
Rohit Grover 66:b3680699d9a4 26 #include <stdint.h>
Rohit Grover 66:b3680699d9a4 27
Rohit Grover 66:b3680699d9a4 28 #define BOOTLOADER_DFU_START 0xB1
Rohit Grover 66:b3680699d9a4 29
Rohit Grover 66:b3680699d9a4 30 /**@brief DFU Bank state code, which indicates wether the bank contains: A valid image, invalid image, or an erased flash.
Rohit Grover 66:b3680699d9a4 31 */
Rohit Grover 66:b3680699d9a4 32 typedef enum
Rohit Grover 66:b3680699d9a4 33 {
Rohit Grover 66:b3680699d9a4 34 BANK_VALID_APP = 0x01,
Rohit Grover 66:b3680699d9a4 35 BANK_VALID_SD = 0xA5,
Rohit Grover 66:b3680699d9a4 36 BANK_VALID_BOOT = 0xAA,
Rohit Grover 66:b3680699d9a4 37 BANK_ERASED = 0xFE,
Rohit Grover 66:b3680699d9a4 38 BANK_INVALID_APP = 0xFF,
Rohit Grover 66:b3680699d9a4 39 } bootloader_bank_code_t;
Rohit Grover 66:b3680699d9a4 40
Rohit Grover 66:b3680699d9a4 41 /**@brief Structure holding bootloader settings for application and bank data.
Rohit Grover 66:b3680699d9a4 42 */
Rohit Grover 66:b3680699d9a4 43 typedef struct
Rohit Grover 66:b3680699d9a4 44 {
Rohit Grover 66:b3680699d9a4 45 bootloader_bank_code_t bank_0; /**< Variable to store if bank 0 contains a valid application. */
Rohit Grover 66:b3680699d9a4 46 uint16_t bank_0_crc; /**< If bank is valid, this field will contain a valid CRC of the total image. */
Rohit Grover 66:b3680699d9a4 47 bootloader_bank_code_t bank_1; /**< Variable to store if bank 1 has been erased/prepared for new image. Bank 1 is only used in Banked Update scenario. */
Rohit Grover 66:b3680699d9a4 48 uint32_t bank_0_size; /**< Size of active image in bank0 if present, otherwise 0. */
Rohit Grover 66:b3680699d9a4 49 uint32_t sd_image_size; /**< Size of SoftDevice image in bank0 if bank_0 code is \ref BANK_VALID_SD. */
Rohit Grover 66:b3680699d9a4 50 uint32_t bl_image_size; /**< Size of Bootloader image in bank0 if bank_0 code is \ref BANK_VALID_SD. */
Rohit Grover 66:b3680699d9a4 51 uint32_t app_image_size; /**< Size of Application image in bank0 if bank_0 code is \ref BANK_VALID_SD. */
Rohit Grover 66:b3680699d9a4 52 uint32_t sd_image_start; /**< Location in flash where SoftDevice image is stored for SoftDevice update. */
Rohit Grover 66:b3680699d9a4 53 } bootloader_settings_t;
Rohit Grover 66:b3680699d9a4 54
Rohit Grover 66:b3680699d9a4 55 #endif // BOOTLOADER_TYPES_H__
Rohit Grover 66:b3680699d9a4 56
Rohit Grover 66:b3680699d9a4 57 /**@} */