From 68041c4710fc044c13f4107a74ae26badf611fd8 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 1 Sep 2015 11:42:26 +0100 Subject: works --- dfu.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'dfu.h') diff --git a/dfu.h b/dfu.h index f85bc62..4ed16e0 100644 --- a/dfu.h +++ b/dfu.h @@ -30,10 +30,9 @@ enum OP_CODE_PKT_RCPT_NOTIF = 17 /**< Value of the Op code field for 'Packets Receipt Notification'.*/ }; -enum { - DFU_MODE_SOFTDEVICE = 1, - DFU_MODE_BOOTLOADER = 2, - DFU_MODE_SD_BL = 3, - DFU_MODE_APPLICATION = 4 -}; +#define DFU_UPDATE_SD 0x01 /**< Bit field indicating update of SoftDevice is ongoing. */ +#define DFU_UPDATE_BL 0x02 /**< Bit field indicating update of bootloader is ongoing. */ +#define DFU_UPDATE_APP 0x04 /**< Bit field indicating update of application is ongoing. */ +#define DFU_INIT_RX 0x00 /**< Op Code identifies for receiving init packet. */ +#define DFU_INIT_COMPLETE 0x01 /**< Op Code identifies for transmission complete of init packet. */ -- cgit v1.2.3