S132 SoftDevice v5.0.0-1.alpha
Modules | Macros

Modules

 Clock accuracy
 
 Fault ID ranges
 
 Fault ID types
 
 Possible lfclk oscillator sources
 

Macros

#define SD_MAJOR_VERSION   (5)
 The major version for the SoftDevice binary distributed with this header file.
 
#define SD_MINOR_VERSION   (0)
 The minor version for the SoftDevice binary distributed with this header file.
 
#define SD_BUGFIX_VERSION   (0)
 The bugfix version for the SoftDevice binary distributed with this header file.
 
#define SD_VERSION   (SD_MAJOR_VERSION * 1000000 + SD_MINOR_VERSION * 1000 + SD_BUGFIX_VERSION)
 The full version number for the SoftDevice binary this header file was distributed with, as a decimal number in the form Mmmmbbb, where: More...
 
#define SDM_SVC_BASE   0x10
 SoftDevice Manager SVC Base number.
 
#define SDM_INFO_FIELD_INVALID   (0)
 Invalid info field. Returned when an info field does not exist.
 
#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) when the SoftDevice is installed just above the MBR (the usual case).
 
#define SD_INFO_STRUCT_SIZE_OFFSET   (SOFTDEVICE_INFO_STRUCT_OFFSET)
 Defines the offset for the SoftDevice Information Structure size value relative to the SoftDevice base address. The size value is of type uint8_t.
 
#define SD_SIZE_OFFSET   (SOFTDEVICE_INFO_STRUCT_OFFSET + 0x08)
 Defines the offset for the SoftDevice size value relative to the SoftDevice base address. The size value is of type uint32_t.
 
#define SD_FWID_OFFSET   (SOFTDEVICE_INFO_STRUCT_OFFSET + 0x0C)
 Defines the offset for FWID value relative to the SoftDevice base address. The FWID value is of type uint16_t.
 
#define SD_ID_OFFSET   (SOFTDEVICE_INFO_STRUCT_OFFSET + 0x10)
 Defines the offset for the SoftDevice ID relative to the SoftDevice base address. The ID is of type uint32_t.
 
#define SD_VERSION_OFFSET   (SOFTDEVICE_INFO_STRUCT_OFFSET + 0x14)
 Defines the offset for the SoftDevice version relative to the SoftDevice base address in the same format as SD_VERSION, stored as an uint32_t.
 
#define SD_INFO_STRUCT_SIZE_GET(baseaddr)   (*((uint8_t *) ((baseaddr) + SD_INFO_STRUCT_SIZE_OFFSET)))
 Defines a macro for retreiving the actual SoftDevice Information Structure size value from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case).
 
#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 as the argument when the SoftDevice is installed just above the MBR (the usual case).
 
#define SD_FWID_GET(baseaddr)   (*((uint16_t *) ((baseaddr) + SD_FWID_OFFSET)))
 Defines a macro for retreiving the actual FWID value from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case).
 
#define SD_ID_GET(baseaddr)
 Defines a macro for retreiving the actual SoftDevice ID from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case). More...
 
#define SD_VERSION_GET(baseaddr)
 Defines a macro for retreiving the actual FWID value from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case). More...
 

Detailed Description

Macro Definition Documentation

#define SD_ID_GET (   baseaddr)
Value:

Defines a macro for retreiving the actual SoftDevice ID from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case).

#define SD_VERSION   (SD_MAJOR_VERSION * 1000000 + SD_MINOR_VERSION * 1000 + SD_BUGFIX_VERSION)

The full version number for the SoftDevice binary this header file was distributed with, as a decimal number in the form Mmmmbbb, where:

  • M is major version (one or more digits)
  • mmm is minor version (three digits)
  • bbb is bugfix version (three digits).
#define SD_VERSION_GET (   baseaddr)
Value:

Defines a macro for retreiving the actual FWID value from a given base address. Use MBR_SIZE as the argument when the SoftDevice is installed just above the MBR (the usual case).


Documentation feedback | Developer Zone | Subscribe | Updated