nrfxlib API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
nrf_802154_frame_parser.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018, Nordic Semiconductor ASA
3
* All rights reserved.
4
*
5
* SPDX-License-Identifier: BSD-3-Clause
6
*
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions are met:
9
*
10
* 1. Redistributions of source code must retain the above copyright notice, this
11
* list of conditions and the following disclaimer.
12
*
13
* 2. Redistributions in binary form must reproduce the above copyright
14
* notice, this list of conditions and the following disclaimer in the
15
* documentation and/or other materials provided with the distribution.
16
*
17
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18
* contributors may be used to endorse or promote products derived from this
19
* software without specific prior written permission.
20
*
21
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
* IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
* POSSIBILITY OF SUCH DAMAGE.
32
*
33
*/
34
39
40
#ifndef NRF_802154_FRAME_PARSER_H
41
#define NRF_802154_FRAME_PARSER_H
42
43
#include "
nrf_802154_const.h
"
44
#include "
nrf_802154_utils_byteorder.h
"
45
#include "
nrf_802154_frame.h
"
46
#include <stdbool.h>
47
#include <stdint.h>
48
#include <stddef.h>
49
53
static
inline
void
nrf_802154_frame_parser_data_clear
(
nrf_802154_frame_t
* p_frame)
54
{
55
p_frame->
p_frame
=
NULL
;
56
p_frame->
parse_level
=
PARSE_LEVEL_NONE
;
57
}
58
75
bool
nrf_802154_frame_parser_data_init
(uint8_t * p_frame,
76
uint8_t valid_data_len,
77
nrf_802154_frame_parser_level_t
requested_parse_level,
78
nrf_802154_frame_t
* p_parser_data);
79
95
bool
nrf_802154_frame_parser_valid_data_extend
(
96
nrf_802154_frame_t
* p_parser_data,
97
uint8_t valid_data_len,
98
nrf_802154_frame_parser_level_t
requested_parse_level);
99
100
#endif
// NRF_802154_FRAME_PARSER_H
nrf_802154_const.h
nrf_802154_frame_parser_level_t
nrf_802154_frame_parser_level_t
Definition
nrf_802154_frame.h:63
PARSE_LEVEL_NONE
@ PARSE_LEVEL_NONE
Parse level at which no parsing has been performed on the frame.
Definition
nrf_802154_frame.h:69
nrf_802154_frame.h
nrf_802154_frame_parser_data_init
bool nrf_802154_frame_parser_data_init(uint8_t *p_frame, uint8_t valid_data_len, nrf_802154_frame_parser_level_t requested_parse_level, nrf_802154_frame_t *p_parser_data)
Initializes the frame parse data and parses the frame.
nrf_802154_frame_parser_data_clear
static void nrf_802154_frame_parser_data_clear(nrf_802154_frame_t *p_frame)
Module that contains frame parsing utilities for the 802.15.4 radio driver.
Definition
nrf_802154_frame_parser.h:53
nrf_802154_frame_parser_valid_data_extend
bool nrf_802154_frame_parser_valid_data_extend(nrf_802154_frame_t *p_parser_data, uint8_t valid_data_len, nrf_802154_frame_parser_level_t requested_parse_level)
Extends the valid data and parses the frame.
nrf_802154_utils_byteorder.h
NULL
#define NULL
Definition
osal_types.h:36
nrf_802154_frame_t::parse_level
nrf_802154_frame_parser_level_t parse_level
Current frame parse level.
Definition
nrf_802154_frame.h:141
nrf_802154_frame_t::p_frame
uint8_t * p_frame
Pointer to a buffer containing the frame bytes.
Definition
nrf_802154_frame.h:140
nrf_802154_frame_t
Definition
nrf_802154_frame.h:139
nrf_802154
driver
src
mac_features
nrf_802154_frame_parser.h
Generated on
for nrfxlib API by
1.17.0