nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Device Firmware Update API.

Device Firmware Update module interface. More...

Modules

 Types and definitions.
 Device Firmware Update module type and definitions.
 

Functions

uint32_t dfu_init (void)
 Function for initializing the Device Firmware Update module. More...
 
uint32_t dfu_image_size_set (uint32_t image_size)
 Function for setting the DFU image size. More...
 
uint32_t dfu_data_pkt_handle (dfu_update_packet_t *p_packet)
 Function for handling DFU data packets. More...
 
uint32_t dfu_init_pkt_handle (dfu_update_packet_t *p_packet)
 Function for handling DFU init packets. More...
 
uint32_t dfu_image_validate (void)
 Function for validating a transferred image after the transfer has completed. More...
 
uint32_t dfu_image_activate (void)
 Function for activating the transfered image after validation has successfully completed. More...
 

Detailed Description

Function Documentation

uint32_t dfu_init ( void  )
Returns
NRF_SUCCESS on success, an error_code otherwise.
uint32_t dfu_image_size_set ( uint32_t  image_size)

Function sets the DFU image size. This function must be called when an update is started in order to notify the DFU of the new image size.

Parameters
[in]image_sizeSize of the image to be transmitted.
Returns
NRF_SUCCESS on success, an error_code otherwise.
uint32_t dfu_data_pkt_handle ( dfu_update_packet_t p_packet)
Parameters
[in]p_packetPointer to the DFU packet.
Returns
NRF_SUCCESS on success, an error_code otherwise.
uint32_t dfu_init_pkt_handle ( dfu_update_packet_t p_packet)
Returns
NRF_SUCCESS on success, an error_code otherwise.
uint32_t dfu_image_validate ( void  )
Returns
NRF_SUCCESS on success, an error_code otherwise.
uint32_t dfu_image_activate ( void  )
Returns
NRF_SUCCESS on success, an error_code otherwise.