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
9#pragma once
10
20
21#include "cc110x_calibration.h"
23#include "cc110x_constants.h"
24#include "cc110x_netdev.h"
25#include "cc110x_rx_tx.h"
26#include "cc110x_settings.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
58static inline cc110x_state_t cc110x_state_from_status(uint8_t status)
59{
60 return (cc110x_state_t)((status >> 4) & 0x7);
61}
62
71static inline int cc110x_is_ready_from_status(uint8_t status)
72{
73 return (status & 0x80) ? 0: 1;
74}
75
76#ifdef __cplusplus
77}
78#endif
79
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:257