libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
51/radio.h
Go to the documentation of this file.
1
/** @defgroup radio_defines RADIO Defines
2
*
3
* @brief <b>Defined Constants and Types for the NRF51xx 2.4GHz radio</b>
4
*
5
* @ingroup NRF51xx_defines
6
*
7
* @version 1.0.0
8
*
9
* @date Nov 2021
10
*
11
*LGPL License Terms @ref lgpl_license
12
*/
13
/*
14
* This file is part of the libopencm3 project.
15
*
16
* Copyright (C) 2017-2018 Unicore MX project<dev(at)lists(dot)unicore-mx(dot)org>
17
* Copyright (C) 2021 Eduard Drusa <ventyl86(at)netkosice(dot)sk>
18
*
19
* This library is free software: you can redistribute it and/or modify
20
* it under the terms of the GNU Lesser General Public License as published by
21
* the Free Software Foundation, either version 3 of the License, or
22
* (at your option) any later version.
23
*
24
* This library is distributed in the hope that it will be useful,
25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27
* GNU Lesser General Public License for more details.
28
*
29
* You should have received a copy of the GNU Lesser General Public License
30
* along with this library. If not, see <http://www.gnu.org/licenses/>.
31
*/
32
33
#pragma once
34
35
#include <
libopencm3/cm3/common.h
>
36
#include <
libopencm3/nrf/memorymap.h
>
37
#include <
libopencm3/nrf/periph.h
>
38
#include <
libopencm3/nrf/common/radio.h
>
39
40
enum
radio_mode
{
41
RADIO_MODE_NRF_1MBIT
,
42
RADIO_MODE_NRF_2MBIT
,
43
RADIO_MODE_NRF_250KBIT
,
44
RADIO_MODE_BLE_1MBIT
,
45
};
46
47
BEGIN_DECLS
48
49
void
radio_set_mode
(
enum
radio_mode
mode);
50
51
END_DECLS
52
radio_mode
radio_mode
Definition:
51/radio.h:40
RADIO_MODE_NRF_1MBIT
@ RADIO_MODE_NRF_1MBIT
Definition:
51/radio.h:41
RADIO_MODE_NRF_2MBIT
@ RADIO_MODE_NRF_2MBIT
Definition:
51/radio.h:42
RADIO_MODE_BLE_1MBIT
@ RADIO_MODE_BLE_1MBIT
Definition:
51/radio.h:44
RADIO_MODE_NRF_250KBIT
@ RADIO_MODE_NRF_250KBIT
Definition:
51/radio.h:43
radio.h
common.h
END_DECLS
#define END_DECLS
Definition:
common.h:34
BEGIN_DECLS
#define BEGIN_DECLS
Definition:
common.h:33
radio_set_mode
void radio_set_mode(enum radio_mode mode)
Set radio mode.
Definition:
radio.c:39
memorymap.h
periph.h
include
libopencm3
nrf
51
radio.h
Generated on Tue Mar 7 2023 16:12:55 for libopencm3 by
1.9.4