Defines

S130 SoftDevice v2.0.1 API

Macros

#define SDM_SVC_BASE 0x10
SoftDevice Manager SVC Base number.
#define SOFTDEVICE_INFO_STRUCT_OFFSET (0x2000)
Defines the SoftDevice Information Structure location (address) as an offset from the start of the softdevice (without MBR)
#define SOFTDEVICE_INFO_STRUCT_ADDRESS ( SOFTDEVICE_INFO_STRUCT_OFFSET + MBR_SIZE )
Defines the absolute Softdevice information structure location (address)
#define SD_SIZE_OFFSET ( SOFTDEVICE_INFO_STRUCT_OFFSET + 0x08)
Defines the offset for Softdevice size value relative to Softdevice base address.
#define SD_FWID_OFFSET ( SOFTDEVICE_INFO_STRUCT_OFFSET + 0x0C)
Defines the offset for FWID value relative to Softdevice base address.
#define SD_SIZE_GET (baseaddr)   (*((uint32_t *) ((baseaddr) + SD_SIZE_OFFSET )))
Defines a macro for retreiving the actual Softdevice size value from a given base address use MBR_SIZE when Softdevice is installed just above the MBR (the usual case)
#define SD_FWID_GET (baseaddr)   ((*((uint32_t *) ((baseaddr) + SD_FWID_OFFSET ))) & 0xFFFF)
Defines a macro for retreiving the actual FWID value from a given base address use MBR_SIZE when Softdevice is installed just above the MBR (the usual case)

Detailed Description