aboutsummaryrefslogtreecommitdiffstats
path: root/dfu.h
diff options
context:
space:
mode:
authorroot <root@no.no.james.local>2015-09-01 11:42:26 +0100
committerroot <root@no.no.james.local>2015-09-01 11:42:26 +0100
commit68041c4710fc044c13f4107a74ae26badf611fd8 (patch)
tree7d86fa94ec98e2078f2b67c12d4386bf3e1899c1 /dfu.h
parent7e25356deec3369773e3949fe7336d84c10834c0 (diff)
downloadnrfdfu-68041c4710fc044c13f4107a74ae26badf611fd8.tar.gz
nrfdfu-68041c4710fc044c13f4107a74ae26badf611fd8.tar.bz2
nrfdfu-68041c4710fc044c13f4107a74ae26badf611fd8.zip
works
Diffstat (limited to 'dfu.h')
-rw-r--r--dfu.h11
1 files changed, 5 insertions, 6 deletions
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. */