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 <stdbool.h>
11
12
#if defined(NRF91_PLATFORM)
13
14
typedef
struct
15
{
21
const
char
* at_commands;
22
} platform_nrf91_t;
23
#endif
24
25
#if defined(EFR32_PLATFORM)
26
#include "em_cmu.h"
27
29
typedef
struct
30
{
34
const
CMU_HFXOInit_TypeDef * hfxoInit;
38
const
CMU_LFXOInit_TypeDef * lfxoInit;
39
} platform_efr32_t;
40
#endif
41
43
typedef
union
44
{
45
#if defined(NRF52_PLATFORM)
46
49
const
void
* nrf52;
50
#elif defined(NRF91_PLATFORM)
51
54
const
void
* nrf91;
55
#elif defined(EFR32_PLATFORM)
56
59
const
platform_efr32_t * efr32;
60
#endif
61
}
platform_t
;
62
64
typedef
struct
65
{
69
bool
crystal_32k
;
73
bool
dcdc
;
77
platform_t
platform
;
78
}
hardware_capabilities_t
;
79
87
const
hardware_capabilities_t
*
hardware_getCapabilities
(
void
);
88
89
#endif //HARDWARE_H_
hardware_capabilities_t::crystal_32k
bool crystal_32k
Definition:
bl_hardware.h:69
hardware_getCapabilities
const hardware_capabilities_t * hardware_getCapabilities(void)
Returns board hardware capabilities.
platform_t
Platform specific descriptions.
Definition:
bl_hardware.h:43
hardware_capabilities_t::platform
platform_t platform
Definition:
bl_hardware.h:77
hardware_capabilities_t
Hardware features that can be installed on a board.
Definition:
bl_hardware.h:64
hardware_capabilities_t::dcdc
bool dcdc
Definition:
bl_hardware.h:73