Loading...
Searching...
No Matches
cc110x_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Otto-von-Guericke-Universität Magdeburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
19#ifndef CC110X_INTERNAL_H
20#define CC110X_INTERNAL_H
21
22#include "cc110x_calibration.h"
24#include "cc110x_constants.h"
25#include "cc110x_netdev.h"
26#include "cc110x_rx_tx.h"
27#include "cc110x_settings.h"
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
59static inline cc110x_state_t cc110x_state_from_status(uint8_t status)
60{
61 return (cc110x_state_t)((status >> 4) & 0x7);
62}
63
72static inline int cc110x_is_ready_from_status(uint8_t status)
73{
74 return (status & 0x80) ? 0: 1;
75}
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif /* CC110X_INTERNAL_H */
Calibration related functions of the CC110x transceiver driver.
Functions to communicate with the CC1100/CC1101 transceiver.
Constants for the CC1100/CC1101 driver.
static cc110x_state_t cc110x_state_from_status(uint8_t status)
Extract the device state from the status register value.
static int cc110x_is_ready_from_status(uint8_t status)
Figure out of the transceiver is ready or still powering up.
Functions related to the netdev interface of the CC110x driver.
Functions to related to RX/TX of the CC110x transceiver driver.
Default settings of the TI CC1100/CC1101 transceiver.
cc110x_state_t
The state of the CC1100/CC1101 transceiver.
Definition cc110x.h:258