GNU Radio's LORA Package
loraphy.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2017 Pieter Robyns.
4
*
5
* This is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 3, or (at your option)
8
* any later version.
9
*
10
* This software is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this software; see the file COPYING. If not, write to
17
* the Free Software Foundation, Inc., 51 Franklin Street,
18
* Boston, MA 02110-1301, USA.
19
*/
20
21
#include <stdint.h>
22
23
typedef
enum
cr
{
CR1
=1,
CR2
,
CR3
,
CR4
}
cr_t
;
24
25
typedef
struct
__attribute__
((__packed__)) loraphy_header {
26
uint8_t length;
27
uint8_t crc_msn : 4;
28
uint8_t has_mac_crc : 1;
29
uint8_t
cr
: 3;
30
uint8_t crc_lsn : 4;
31
uint8_t reserved : 4;
32
}
loraphy_header_t
;
cr_t
enum cr cr_t
cr
cr
Definition:
loraphy.h:23
CR2
@ CR2
Definition:
loraphy.h:23
CR4
@ CR4
Definition:
loraphy.h:23
CR1
@ CR1
Definition:
loraphy.h:23
CR3
@ CR3
Definition:
loraphy.h:23
loraphy_header_t
loraphy_header_t
Definition:
loraphy.h:32
__attribute__
struct __attribute__((__packed__)) loraphy_header
Definition:
loraphy.h:25
rpp0-gr-lora-91fb5e4
include
lora
loraphy.h
Generated on Mon Jan 24 2022 05:22:23 for GNU Radio's LORA Package by
1.9.3