Wirepas SDK
bl_hardware.h
Go to the documentation of this file.
1 /* Copyright 2020 Wirepas Ltd. All Rights Reserved.
2  *
3  * See file LICENSE.txt for full license details.
4  *
5  */
6 
7 #ifndef HARDWARE_H_
8 #define HARDWARE_H_
9 
10 #include <stdint.h>
11 #include <stdbool.h>
12 
13 #if defined(NRF91_PLATFORM)
14 
15 typedef struct
16 {
22  const char * at_commands;
23 } platform_nrf91_t;
24 #elif defined(NRF54_PLATFORM)
25 
26 typedef struct
27 {
34  const uint16_t hfxo_int_cap_ff;
35 
42  const uint16_t lfxo_int_cap_ff;
43 
50  const uint32_t override_ficr_info_part;
51 } platform_nrf54_t;
52 #elif defined(EFR32_PLATFORM)
53 #include "em_cmu.h"
54 
56 typedef struct
57 {
61  const CMU_HFXOInit_TypeDef * hfxoInit;
65  const CMU_LFXOInit_TypeDef * lfxoInit;
66 } platform_efr32_t;
67 #endif
68 
70 typedef union
71 {
72 #if defined(NRF52_PLATFORM)
73 
76  const void * nrf52;
77 #elif defined(NRF54_PLATFORM)
78 
81  const platform_nrf54_t * nrf54;
82 #elif defined(NRF91_PLATFORM)
83 
86  const void * nrf91;
87 #elif defined(EFR32_PLATFORM)
88 
91  const platform_efr32_t * efr32;
92 #endif
93 } platform_t;
94 
96 typedef struct
97 {
105  bool dcdc;
111 
120 
121 #endif //HARDWARE_H_
hardware_capabilities_t::crystal_32k
bool crystal_32k
Definition: bl_hardware.h:101
hardware_getCapabilities
const hardware_capabilities_t * hardware_getCapabilities(void)
Returns board hardware capabilities.
platform_t
Platform specific descriptions.
Definition: bl_hardware.h:70
hardware_capabilities_t::platform
platform_t platform
Definition: bl_hardware.h:109
hardware_capabilities_t
Hardware features that can be installed on a board.
Definition: bl_hardware.h:96
hardware_capabilities_t::dcdc
bool dcdc
Definition: bl_hardware.h:105