mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f7a77ebb04
The driver uses the netdev interface. Due to the limited capabilities of the transceiver (32 byte FIFO and no source address in the layer2 frame), it relies on 6LowPAN compression and adds the source address to the frame for that.
56 lines
1.3 KiB
C
56 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU Lesser
|
|
* General Public License v2.1. See the file LICENSE in the top level
|
|
* directory for more details.
|
|
*/
|
|
/**
|
|
* @ingroup drivers_nrf24l01p_ng
|
|
* @{
|
|
*
|
|
* @file
|
|
* @brief Functions to print NRF24L01+ (NG) debug information
|
|
*
|
|
* @author Fabian Hüßler <fabian.huessler@ovgu.de>
|
|
*/
|
|
#ifndef NRF24L01P_NG_DIAGNOSTICS_H
|
|
#define NRF24L01P_NG_DIAGNOSTICS_H
|
|
|
|
#include "nrf24l01p_ng.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Print all NRF24L01+ register values
|
|
*
|
|
* @param[in] dev NRF24L01+ device handle
|
|
*/
|
|
void nrf24l01p_ng_diagnostics_print_all_regs(const nrf24l01p_ng_t *dev);
|
|
|
|
/**
|
|
* @brief Print NRF24L01+ device handle information
|
|
*
|
|
* @param[in] dev NRF24L01+ device handle
|
|
*/
|
|
void nrf24l01p_ng_diagnostics_print_dev_info(const nrf24l01p_ng_t *dev);
|
|
|
|
/**
|
|
* @brief Print NRF24L01+ frame
|
|
*
|
|
* @param[in] dev NRF24L01+ device handle
|
|
* @param[in] frame Frame
|
|
* @param[in] len Frame length
|
|
*/
|
|
void nrf24l01p_ng_diagnostics_print_frame(const nrf24l01p_ng_t *dev,
|
|
const void *frame, size_t len);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* NRF24L01P_NG_DIAGNOSTICS_H */
|
|
/** @} */
|