R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information

Fork of nrf51-sdk by Lancaster University

Embed: (wiki syntax)

« Back to documentation index

DFU BLE SVC

DFU BLE SVC in bootloader. More...

Data Structures

struct  dfu_ble_peer_data_t
 DFU Peer data structure. More...

Enumerations

enum  BOOTLOADER_SVCS { DFU_BLE_SVC_PEER_DATA_SET = BOOTLOADER_SVC_BASE }
 

The SVC numbers used by the SVC functions in the SoC library.

More...

Functions

 SVCALL (DFU_BLE_SVC_PEER_DATA_SET, uint32_t, dfu_ble_svc_peer_data_set(dfu_ble_peer_data_t *p_peer_data))
 SVC Function for setting peer data containing address, IRK, and LTK to establish bonded connection in DFU mode.

Detailed Description

DFU BLE SVC in bootloader.

The DFU BLE SuperVisor Calls allow an application to execute functions in the installed bootloader.

This module implements handling of SuperVisor Calls in the bootloader. SuperVisor Calls allow for an application to execute calls into the bootloader. Currently, it is possible to exchange bonding information (like keys) from the application to a bootloader supporting DFU OTA using BLE, so the update process can be done through an already existing bond.

Note:
The application must make sure that all SuperVisor Calls (SVC) are forwarded to the bootloader to ensure correct behavior. Forwarding of SVCs to the bootloader is done using the SoftDevice SVC sd_softdevice_vector_table_base_set with the value present in NRF_UICR->BOOTLOADERADDR.

Enumeration Type Documentation

The SVC numbers used by the SVC functions in the SoC library.

Enumerator:
DFU_BLE_SVC_PEER_DATA_SET 

SVC number for the setting of peer data call.

Definition at line 67 of file dfu_ble_svc.h.


Function Documentation

SVCALL ( DFU_BLE_SVC_PEER_DATA_SET  ,
uint32_t  ,
dfu_ble_svc_peer_data_set(dfu_ble_peer_data_t *p_peer_data)   
)

SVC Function for setting peer data containing address, IRK, and LTK to establish bonded connection in DFU mode.

Parameters:
[in]p_peer_dataPointer to the peer data containing keys for the connection.
Return values:
NRF_ERROR_NULLIf a NULL pointer was provided as argument.
NRF_SUCCESSIf the function completed successfully.