RadioHead
Main Page
Classes
Files
Examples
File List
RH_NRF52.h
1
// RH_NRF52.h
2
// Author: Mike McCauley
3
// Copyright (C) 2016 Mike McCauley
4
// $Id: RH_NRF51.h,v 1.3 2015/08/14 21:20:12 mikem Exp $
5
//
6
7
#ifndef RH_NRF52_h
8
#define RH_NRF52_h
9
10
#include <RHGenericDriver.h>
11
12
// This is the maximum number of bytes that can be carried by the nRF52.
13
// We use some for headers, keeping fewer for RadioHead messages
14
#define RH_NRF52_MAX_PAYLOAD_LEN 254
15
16
// The length of the headers we add.
17
// The headers are inside the nRF52 payload
18
#define RH_NRF52_HEADER_LEN 4
19
20
// This is the maximum RadioHead user message length that can be supported by this library. Limited by
21
// the supported message lengths in the nRF51
22
#define RH_NRF52_MAX_MESSAGE_LEN (RH_NRF52_MAX_PAYLOAD_LEN-RH_NRF52_HEADER_LEN)
23
24
/////////////////////////////////////////////////////////////////////
25
/// \class RH_NRF52 RH_NRF52.h <RH_NRF52.h>
26
/// \brief Send and receive addressed datagrams by nRF52 compatible transceivers.
27
///
28
/// Supported transceivers include:
29
/// - Nordic nRF52 based 2.4GHz radio modules, such as nRF52832
30
/// and other compatible chips, such as:
31
/// SparkFun nRF52832 Breakout https://www.sparkfun.com/products/13990
32
///
33
34
/// @example nrf52_client.pde
35
/// @example nrf52_server.pde
36
/// @example nrf52_reliable_datagram_client.pde
37
/// @example nrf52_reliable_datagram_server.pde
38
#endif
Generated by
1.8.8